Skip to content

Commit

Permalink
feat: apply value formatter to the default legend item label (#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov authored Jun 4, 2021
1 parent 380363b commit 71474a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart_types/heatmap/state/selectors/compute_legend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const computeLegendSelector = createCachedSelector(

return {
color,
label: `> ${tick}`,
label: `> ${spec.valueFormatter ? spec.valueFormatter(tick) : tick}`,
seriesIdentifiers: [seriesIdentifier],
isSeriesHidden: deselectedDataSeries.some((dataSeries) => dataSeries.key === seriesIdentifier.key),
isToggleable: true,
Expand Down

0 comments on commit 71474a5

Please sign in to comment.