Nivo: feature request: margins automatically adjust to tick values

Created on 31 Jan 2018  路  3Comments  路  Source: plouc/nivo

I have tick values which I do not know the max text size. Long tick values strings cut off if the margin is too small as shown in https://www.webpackbin.com/bins/-KylBOM-OLUpXZ8zOhY-.

It would be nice if we could have it automatically adjust margins so we don't have to eyeball.

Most helpful comment

Can this be reopened? I think allowing margins to be responsive to the width of the legend is not niche and very useful.

All 3 comments

closing ticket since this is pretty specific. I used a third party library to precompute svg width to resize margins called 'svg-text-size' and no longer need this implemented

Can this be reopened? I think allowing margins to be responsive to the width of the legend is not niche and very useful.

Bump!

Was this page helpful?
0 / 5 - 0 ratings