Open anish-g-nair opened 7 years ago
you could have done it using javascript only.
var yourString ='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'; yourString = yourString.substr(0,10) + '...';
This will trim you option value in java script only.or try this one staggerLabels from :
http://nvd3-community.github.io/nvd3/examples/documentation.html#multiBarHorizontalChart
Some of the legends have very long texts.
This pushes the legends to the next line, and also forces the chart from taking more height(more space taken by legends). Can I restrict the legends to a single line, and trim very long texts.
Have attached the screenshot - when legends have long text.
Backup link: https://img42.com/fRHk2
What I am looking for is something like this. Single line legends, if texts are too long, trim it.
Backup link: https://img42.com/7iGj4
Please help.