c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.33k stars 1.39k forks source link

axis.x.tick.multiline cutting too much of label #2727

Open marriskleinert opened 4 years ago

marriskleinert commented 4 years ago

Hi!

My labels were cut off before I found the new version with multiline possibility. For space reasons I can only show one line, so I simply added multiline: true, multilineMax: 1 to the axis.x.tick. Now, either the whole label is shown or nothing. Couldn't it just calculate what's possible to show and then add the dots "..."?

Thanks for your help

C3 version: 0.7.4