Sign in to follow this  
Sosuke

Some vertical x-axis DataLabels

Recommended Posts

Hi,

 

I created a 'MSStackedColumn2DLineDY' chart with JavaScript.

'example.xml' as data source is attached.

 

FusionCharts.setCurrentRenderer('javascript');
var chartObj = new FusionCharts('MSStackedColumn2DLineDY', 'ChartId', "100%", "100%");
chartObj.setXMLUrl('example.xml');
chartObj.render("my_chart");
 
 
All x-axis DataLabels are correct on this chart with maximizing window, but when a window is made small, a chart has some vertical DataLabels.
I tried 'AUTO' and 'WRAP' on an attribute 'labelDisplay', but this vertical label did not be resolved.
 
I hope that all DataLabels are horizontal per each lines, and long label name can be truncated.
Is it possible?
 
Thank,
 

example.xml

post-62375-0-72149000-1389771128_thumb.jpg

post-62375-0-21024800-1389771132_thumb.jpg

Share this post


Link to post
Share on other sites
Guest Sumedh

Hello,

 

Try to set labelDisplay='Auto' and slantLabels='1' in the chart XML.

 

And remove the {br} psuedo codes from the category elements.

Share this post


Link to post
Share on other sites

Thanks,

 

DataLables have been horizontal thanks to your advice.

But, I have a further question about this, are multiple lines on DataLabels not acceptable for you?

 

I would like to have the multiple lines on DataLabels with {br}, for example, 'Name{br}Value'.

Please let me know if you have other way to achieve this.

 

Sincerely,

Share this post


Link to post
Share on other sites
Guest Sumedh

Hello,

 

Chart displays labels as per the data you provide and if you provide long labels with {br} pseudo code, then chart adjust them and displays as per the dimensions also.

 

To display the long labels with {br} pseudo code, you need to provide larger chart dimensions.

 

For more information, please refer the following link:

http://docs.fusioncharts.com/charts/contents/AttDesc/DataLabels.html

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
Sign in to follow this