Skip to content

Commit

Permalink
convert colors to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmadUsmani committed Jun 18, 2024
1 parent 9563154 commit 3c54354
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Color from "color";
import { t } from "ttag";
import _ from "underscore";

Expand Down Expand Up @@ -104,7 +105,7 @@ export function getPieChartModel(
tooltipDisplayValue: metricValue,
normalizedPercentage: metricValue / total, // slice percentage values are normalized to 0-1 scale
rowIndex: index,
color: settings["pie.colors"][String(dimensionValue)],
color: Color(settings["pie.colors"][String(dimensionValue)]).hex(),
};
})
.filter(slice => isNonPositive || slice.value >= 0)
Expand Down

0 comments on commit 3c54354

Please sign in to comment.