frappe / charts

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

Feature request: vertical legends #326

Open mathiasbynens opened 3 years ago

mathiasbynens commented 3 years ago

I have this chart with data for the 16 German states: https://mathiasbynens.github.io/covid-19-vaccinations-germany/#per-mille frappe-charts‘s default horizontal positioning of the legend doesn’t scale to this amount of datasets.

It would be nice to have an option to render the legend vertically, with 1 title per line, instead of trying to positioning them all next to each other. The chart itself could then be a little less wide to make room for the legend.

(The same problem occurs with the tooltip: all values are rendered next to each other, which doesn’t work when there’s this many datasets. It would be better to present a different tooltip in this case, perhaps with 1 value per line.)

scmmishra commented 3 years ago

I plan to implement this in the future, however due to bandwidth constraints I cannot commit on a date. Thanks for the suggestion