Sign in to follow this  
jksry

Problem With Horizontal 2D Bar Chart

Recommended Posts

Hi,

 

I am using horizontal 2D bar chart.so label will be displaying in left side. I want to wrap and display the long label.Please suggest.

 

Thanks in advance.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Welcome to FusionCharts Forum!

 

If you want to wrap the labels, then you can use labelDisplay as "Wrap" and maxLabelWidhtPercent attribute in case of Flash chart.

 

maxLabelWidhtPercent - Restricts the maximum length of data labels in terms of percentage of the charts width that the data labels can occupy.

If a data label is longer than the specified percentage width then it will either be wrapped or get truncated, subject to availability of vertical space.

 

For more information, please refer the following links:

http://docs.fusioncharts.com/charts/contents/ChartSS/Bar2D.html

 

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

 

JavaScript chart does not support displaying of labels in multiple lines, so you would need to manually {br} pseudo code.

 

Ref. Code:

<set label='May 18th 1945{br} Sunday 10:45pm ' value='810000' />

 

Hope this helps!

Share this post


Link to post
Share on other sites

Hi,

 

I used maxLabelWidhtPercent its not getting wrapped. and whole label is not displaying when i try to hover its displaying.

Please suggest.

 

Thanks in advance

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Are you trying to render JavaScript chart or Flash chart?

 

What FusionCharts version are you using? Can you please share a screen-shot of your issue?

Share this post


Link to post
Share on other sites

Hi,

 

I guess Version 3.2 and trying to render using javascript ,attached the screenshot you can see the label will not be in multiline

 

thanks in advancepost-41998-0-99395400-1369817210_thumb.jpg

Share this post


Link to post
Share on other sites

Hi,

 

As mentioned earlier, JavaScript charts does not support wrapping the data labels into multiple lines, so you will have to manually add {br} pseudo code.

 

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