Fix: Top table rendering and update docs (#64497)

Fix flame graph in test data and update docs
pull/64609/head
Joey 3 years ago committed by GitHub
parent a8f201f8ab
commit 2f55911fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/sources/datasources/testdata/_index.md
  2. 2
      public/app/plugins/panel/flamegraph/components/TopTable/FlameGraphTopTableContainer.tsx

@ -60,6 +60,7 @@ You can assign an **Alias** to each scenario, and many have their own options th
- **CSV Metric Values**
- **Datapoints Outside Range**
- **Exponential heatmap bucket data**
- **Flame Graph**
- **Grafana API**
- **Grafana Live**
- **Linear heatmap bucket data**
@ -77,6 +78,7 @@ You can assign an **Alias** to each scenario, and many have their own options th
- **Slow Query**
- **Streaming Client**
- **Table Static**
- **Trace**
- **USA generated data**
## Import a pre-configured dashboard

@ -45,7 +45,7 @@ const FlameGraphTopTableContainer = ({
let label, self, value;
let table: { [key: string]: TableData } = {};
if (data.fields.length === 6) {
if (data.fields.length > 3) {
const valueValues = data.fields[1].values;
const selfValues = data.fields[2].values;
const labelValues = data.fields[3].values;

Loading…
Cancel
Save