Sign in to follow this  
abdbuet

Legend Issue

Recommended Posts

Hi Team,

 

If there is multi elements in Fusion Chart legend, some times it breaks up. For example, in the attached image, the 3rd element of the legend broke up into 2 lines. How can I make sure that no legend element will break up (if goes on 2nd line, full element should go, not partial).

 

 

 

Thanks,

 

-Fahim

post-7314-128441579054_thumb.jpg

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Welcome to FusionCharts Forum. :)

I'm afraid, FusionCharts does not have the functionality for text wrapping in legends, as of now.

However, as a workaround, you can choose to add a line-break character ( ) at the end of a dataset seriesName to display the legend of the next series in a separate line.

For example, in your XML, if you set seriesName='Inter BSC Incoming HO Success Rate ' , the legend for 'Incoming HO Success Rate' will be displayed in the next line.

Hope this helps you. Looking forward to your reply.

 

Share this post


Link to post
Share on other sites

Hi Team,

 

 

 

The solution you provided has one major problem. As my whole project is dynamic with hundreds of parameters to plot, its not possible to identify which element in the legend will break up. As a matter of fact, it'll totally depend on in which sequence the user select the series. So, if I have to use line break, I have to use that after each series, which will create a mess if the user want to plot many series at a time (as u can understand, the legend will use up all the spaces).

 

 

 

So, I think it'll be helpful if you can introduce this in your next update. You can introduce either WRAP option for legend, or even introduce "display-inline" option in STYLE.

 

 

 

Thanks again for your support.

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Thank you for your suggestion. We will try to integerate this in FusionCharts.

You can try using the SSGrid component in place of the legend which will be more organised if you are using a lot of datasets.

Ref. - http://www.fusioncharts.com/docs/Contents/Grid_Overview.html

 

The grid component is used primarily with single-series charts but, you can also use it in multi-series ones, by devicing a separate XML for the Grid-Component.

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