pitommasi Report post Posted July 4, 2011 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 Share this post Link to post Share on other sites
pitommasi Report post Posted July 6, 2011 No one? Since I now have a license, should I ask the commercial support? Thanks Share this post Link to post Share on other sites
Guest Angshu Report post Posted July 6, 2011 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
pitommasi Report post Posted July 6, 2011 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
FusionCharts Support Report post Posted July 6, 2011 Hi, I am afraid, no. Share this post Link to post Share on other sites
pitommasi Report post Posted July 6, 2011 So, i have to truncate the labels in the XML? Share this post Link to post Share on other sites
FusionCharts Support Report post Posted July 6, 2011 The chart handles truncating of the labels to some extent, but you can not set a limit. Hence, yes. Share this post Link to post Share on other sites
pitommasi Report post Posted July 6, 2011 ok, thanks Share this post Link to post Share on other sites