Skip to content
Snippets Groups Projects
Commit d31fab2e authored by Kyle Doherty's avatar Kyle Doherty Committed by GitHub
Browse files

correctly format donut chart center value on hover (#4686)

* consistent pie chart formatting

* format title on hover
parent 06e064b4
No related branches found
No related tags found
No related merge requests found
......@@ -184,8 +184,8 @@ export default class PieChart extends Component<*, Props, *> {
let value, title;
if (hovered && hovered.index != null && slices[hovered.index] !== otherSlice) {
title = slices[hovered.index].key;
value = slices[hovered.index].value;
title = formatDimension(slices[hovered.index].key);
value = formatMetric(slices[hovered.index].value);
} else {
title = "Total";
value = formatMetric(total);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment