Sign in to follow this  
Ravikumar

X axis Text Label length to be fixed to specific length

Recommended Posts

Hi Friends,

 

I am using Fusioncharts XT 3.3.1.

In Stacked Column 2D chart usage,I want to know the Exact Property(or combination of multiple properties) which will enable me to limit the Labels(Long Text Values) to a specific length(or lines).

 

As of now because of Long text labels The chart height is getting reduced a lot and the "showSum=1" values are not showing up.When text labels are shorter then "showSum=1" values are displayed.

 

We have tried the various values for "labeldisplay = AUTO, WRAP, STAGGER, ROTATE, NONE" but none these values is giving the required output.

 

Kindly give a solution for this urgent requirement.

 

Thanks

regards,

Ravi

Edited by Ravikumar

Share this post


Link to post
Share on other sites

Hi Ravi,

 

Can you please make use of the "maxLabelHeight" attribute in the chart element. It takes values in pixels. This attribute can be used to set the maximum height for the x-axis labels (data labels) excluding the x-axis title. If any label goes beyond this height, the label will be truncated. In stagger mode, the number of stagger lines will be reduced if they exceed this value.

 

Please refer the fiddle below for its implementation

http://jsfiddle.net/moonmi/jxsfdygb/

 

Hope this would resolve your issue. If the issue still persists or if the we missed out anything please share a screenshot highlighting the issue so that we can assist you accordingly.

 

Thanks.

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