Munsta

Chart Legend "nowrap" Option?

Recommended Posts

Hello,

 

I have recently converted all my flash charts into javascript and I have noticed that long strings all wrap around.

 

Here is an example :

 

Bcj44sg.png

 

 

How could I force the chart to print it on one line?

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi Munsta,

 

Welcome to FusionCharts Forum.

 

Could you please try once by setting "minimiseWrappingInLegend" to "1", in the <chart> element of your chart XML data?

 

Please note that if you will set this attribute to "1", it will minimize the legend item text wrapping.

 

Also, in a alternate way, you can set "legendNumColumns" to "1", to display long legend text in one line.

 

But, in case if you have very long legend text (beyond the available space for legend), the legend will wrap irrespective of the above settings.

 

For more information on "XML/JSON Attributes for Legend", please follow the link below:

http://docs.fusioncharts.com/charts/contents/?AttDesc/Legend.html

 

Hope this helps!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now