Skip to content

Commit

Permalink
Fix missing rounding on values of vertical legend for links
Browse files Browse the repository at this point in the history
  • Loading branch information
mthh committed Oct 9, 2024
1 parent f8cb034 commit f996f39
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/LegendRenderer/ProportionnalSymbolsLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,17 @@ function verticalLineLegend(
x={60 + defaultSpacing}
// Little offset to center the text... lets see if it works for most cases
y={d.y + 0.5}
>{ d.value }</text>
>{
round(d.value, legend.roundDecimals)
.toLocaleString(
applicationSettingsStore.userLocale,
{
minimumFractionDigits: precisionToMinimumFractionDigits(
legend.roundDecimals,
),
},
)
}</text>
</>
}
</For>
Expand Down

0 comments on commit f996f39

Please sign in to comment.