sgratzl / chartjs-chart-geo

Chart.js Choropleth and Bubble Maps
https://www.sgratzl.com/chartjs-chart-geo/
MIT License
338 stars 36 forks source link

Large values get cut off in choropleth chart #199

Closed spl1nes closed 11 months ago

spl1nes commented 11 months ago

When I use large numeric values in the choropleth chart the label gets cut off at the edge.

To Reproduce

Use large numbers as values.

Expected behavior

Have the label move over.

Screenshots

273669180-a87289eb-72b4-4a42-926c-f3d54ea3a880

Context

sgratzl commented 11 months ago

you can adapt the width of the legend: https://github.com/sgratzl/chartjs-chart-geo/blob/52a9f3dffbf6114047f5db9a7c0bf4517ee1114e/src/scales/LegendScale.ts#L52-L58