frappe / charts

Simple, responsive, modern SVG Charts with zero dependencies
https://frappe.io/charts
MIT License
14.9k stars 716 forks source link

Making a legend bar's width configurable #376

Closed dsuch closed 1 year ago

dsuch commented 2 years ago

Hello,

thank you for creating the library, it is very nice.

I have a small feature request.

When configuring axis charts, could you please make it possible to pass in one's own value of a legend's bar size instead of always defaulting to AXIS_LEGEND_BAR_SIZE?

The default value of 100px is too small to fully display various longer labels in legends because they are truncated depending on the bar's width in pixels which, in turn, defaults to the constant above.

Thank you.

scmmishra commented 2 years ago

You can try the spaceRatio config. Docs