dpeterson

Upgraded to latest FusionCharts XT and legend changed.

Recommended Posts

Working on upgrading out project to latest fusioncharts xt.   Upon doing so a chart's legend changed.   I have the position and "right" and didnt change any code other than replacing the js files.    See the old.png attachment as the previous version looked like, dropped in the new fusioncharts and it looks like this now.     Not sure what I need to change to make it look like the old version.   

old.png

new.png

Share this post


Link to post
Share on other sites

Hi,

 

The current released version of FusionCharts library is 3.15.2, you can configure the legend display either of the scenarios as in the provided images. Please check the below sample fiddles for reference :

http://jsfiddle.net/tdcmyhs9/1/

http://jsfiddle.net/tdcmyhs9/2/

Documentation link for reference to legend configurations : https://www.fusioncharts.com/dev/chart-guide/chart-configurations/legend

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

I know, but If you see in my two images the top one the legend is on the right and vertical.    When I updated to the latest fusioncharts it now is still on the right but it's no longer vertical, it is taking up half the chart.     It shows this in the fiddles you provides as well.   My question is how do I make it look like it was a vertical column with the latest version of fusioncharts?  

Share this post


Link to post
Share on other sites

Hi,

 

Please check the configuration attributes set for the legend display in the provided fiddles, for displaying the legends in a single column check the first sample fiddle in the previous post - "legendNumColumns": "1" is set in the chart-level dataSource.

Similarly, for legends to be set in multiple columns check the second fiddle provided.

For possible configurations of legends, check the provided documentation link in the previous post.

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Ok the legendNumColumns =1 is what I was looking for.    I'm still confused why it worked in the older version and the newer version it does not.    Must have been set by default or something, as I did not have this in the code before. 

 

thanks for your help.

Dave

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