pitommasi

Fixed Height Regardless Of Labels Length

Recommended Posts

Is it possible to prevent charts to get "squashed" when a label is too long?

In other words: can I define the height of the canvas, instead of the height of the whole swf?

 

The current situation, as you know, is that f I set the height of a chart at, let's say, 500px,

that is the height of the entire swf, meaning that a chart with longer labels will have a shorter canvas than one with short labels, right?

Is there a way to control this behaviour?

 

If you take a look to the attachment, you see that the chart on the left is shorter than the one on the right, because its labels are longer.

I want to avoid this difference

Note that the labels are not fixed, so there is no way to predict the space that thei will require.

 

Thanks

post-14963-0-28098000-1309792266_thumb.jpg

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Apologies for the delayed response.

 

As of now, you can not directly define the height of the canvas. However, you can define a maximum canvas margin for the chart using canvasBottomMargin which allows you to set the space between bottom of canvas and bottom of chart. Here, you would need to specify a safe value which would not be crossed by a label's height. If any of the label's height becomes more than this specific height, this value would be ignored.

 

Please note:

 

We uphold FusionCharts Forum not directly for commercial support, but as a Global Community. However, we try to add reply from our end.

 

For commercial support, we encourage you to write to us from: http://www.fusioncharts.com/contact/ or directly write us to : [email protected] with your Order Id.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Thanks for your note.

Back to the issue, basically, you are saying that, although I can set a margin, this might be overrided by fusioncharts if the label is too long...

Can I specify, then, a maximum length for slanted labels, exceeded which the labels are truncated with ellipses? Or should I take care of that with javascript?

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