Skip to content

Commit

Permalink
feat: apply value formatter to the default legend item label (opensea…
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov authored Jun 4, 2021
1 parent b858fb3 commit 20108bb
Showing 1 changed file with 1 addition and 1 deletion.
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 20108bb

Please sign in to comment.