Nivo: legend:how to set dynamic itemWidth?

Created on 31 Jul 2018  ·  7Comments  ·  Source: plouc/nivo

image

Hi, thanks for this awesome project!

I have some legend labels that with different size,it may looks very ugly when I set the fixed itemWidth,so how can I set dynamic itemWidth?

thanks!

enhancement legends stale

Most helpful comment

@plouc Any update with dynamic itemWidth in Line Chart? Thanks for your answer

All 7 comments

Would it be also possible to make it wrap on multiple lines?
cf https://github.com/plouc/nivo/issues/274#issuecomment-416024704

You cannot as it's not supported by SVG, neither wrap.

Can you use tSpans to break up the text to wrap?

Not now, but it could be useful to support some kind of label function which can return any valid SVG.
This is supported for other components/properties (example).

@plouc Any update with dynamic itemWidth in Line Chart? Thanks for your answer

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PattieC4ke picture PattieC4ke  ·  3Comments

zhe1ka picture zhe1ka  ·  3Comments

danpettay picture danpettay  ·  3Comments

KENNYSOFT picture KENNYSOFT  ·  3Comments

Haaziq-Uvais picture Haaziq-Uvais  ·  3Comments