Sign in to follow this  
SolKlein

Javascript Pie2D Label Problems

Recommended Posts

I have a problem with how labels show on the javascript (highchart) pie2D chart.

 

I'm attaching a screen shot of a flash version and javascript version of the same chart. Same XML data use for both charts.

How can I get the labels to show like the flash version? The labels in the javascript chart are mostly unreadable the way

they render.

 

Thanks!

post-10251-013540700 1287333092_thumb.jpg

post-10251-033311200 1287333105_thumb.jpg

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

I'm running the latest version 3.2.1 and am having an issue with labels on the 2D Pie charts. The flash version render correctly and the JavaScript (HighCharts) version

renders differently. Making the labels unreadable/unusable. I'm attaching screenshots of both. Both are fed from the same XML data.

 

Any thoughts on how to change the JS output to match the Flash version?

 

This is a known issue of JavaScript charts.

 

There is a workaround that allows you to specifically adjust your JS charts to suit your needs and bridge differences between the flash charts.

 

For every flash chart, there is an internal method called _overrideJSChartConfiguration that accepts HighCharts configuration as parameter. This configuration overrides the default configuration of the JS charts.

 

The sample code is as below:

if (typeof chartObject._overrideJSChartConfiguration === 'function') {

chartObject._overrideJSChartConfiguration({

// provide highcharts configuration here...

});

}

 

For the HighCharts configuration reference, please check the link mentioned below :-

Ref: http://www.highcharts.com/ref/

 

I 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
Sign in to follow this