Sagar Joshi

Show Legend On Single Series Column2D Chart & Few Characters On X-Axis

Recommended Posts

Hello,

 

I have two requirements.

 

1. Show legend for single series column 2D chart.

2. Show upto certain character on x-axis of single series 2D chart.

 

For example:

If I have value of x-axis == "This is an example of Fusion chart"
It should show only first 10 characters only.

So it should show "This is an..." like this.

How this can be achieved?

 

Regards.

Share this post


Link to post
Share on other sites
Hi Sagar,

 

Please find the answers to your queries below:

1. Show legend for single series column 2D chart.

>> It is not possible to implement Legend for Single-series charts as of now.

 

2.Show upto certain character on x-axis of single series 2D chart.

>> You may use the attribute "useEllipsesWhenOverflow" to truncate long data labels by adding ellipses. This attribute works when the "labelDisplay" is in auto mode. However, it is not possible to round it off to show only certain number of characters after which ellipses follow.

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hey Sagar,

 

If you would like to display Legend for Single Series chart, try using Grid Component. It uses the same single series XML/JSON structure as any other FusionCharts XT chart.

 

Demo Link: http://docs.fusioncharts.com/charts/Code/Grid/GridWithChart.html

 

Please refer for more information at: http://docs.fusioncharts.com/charts/contents/grid-component/Grid_Overview.html

 

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