plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
https://nivo.rocks
MIT License
13.19k stars 1.03k forks source link

Allowing pagination for Legends? #1078

Closed fpezzola closed 3 years ago

fpezzola commented 4 years ago

Is there a way to show the legends paginated? I am trying to show a huge dataset and the legends are being cut by the height of the parent div.

It would be great if i can specify a limit of legends to be shown per page along with a list of hiddenIds to allowing the user to disable/enable a serie (I know this feature is already implemented in the Pie chart).

Pato91 commented 4 years ago

This or trying to make legends scrollable for custom legends would improve interactivity

plouc commented 3 years ago

This is unfortunately not something we're willing to add to nivo, this would add a bunch of extra properties, when legends are getting really long/complex, I would suggest to build them in html outside of the charts, this is more flexible, especially for text handling which is definitely limited in SVG/canvas.