Skip to content

Commit

Permalink
Use series name in tooltip
Browse files Browse the repository at this point in the history
Previously the internal ID for an individual bar chart was used to
identify the series data in the tooltip.

This was confusing so now the series name is used to label the data
points in the tooltip.
  • Loading branch information
jbcrail committed Feb 17, 2022
1 parent 70379e9 commit 04e1b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/profiling/public/components/chart-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const ChartGrid: React.FC<ChartGridProps> = ({ maximum }) => {
const uniqueID = `bar-chart-${i}`;

const barchart = (
<BarChart id={uniqueID} name={uniqueID} height={200} data={subdata} x="x" y="y" />
<BarChart id={uniqueID} name={keys[i]} height={200} data={subdata} x="x" y="y" />
);

const title = (
Expand Down

0 comments on commit 04e1b37

Please sign in to comment.