-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data labels go out of canvas in 3D pie chart #3082
Comments
Update: data labels get in place if chart.series[0].show(); is used. Any series reset does the job so it should be run in core aplication prior to ploting pie graph. |
Internal note: The 3D engine currently goes in after the label positions are established, and translate them to the 3D projection. Instead, it should go in earlier, before the label positions are set, so that the labeling algorithm get the distance and alignment right. |
@stephanevanraes, look at it: http://jsfiddle.net/RZDha/1/ |
you have to use http://github.highcharts.com/highcharts-3d.js to have the latest development branch |
Thanks, it's working now, @stephanevanraes. |
When I add 3D effect to pie chart, data labels go out of canvas. It's interesting that when I turn on/off data in legend, data labels dynamically are nicely put in place inside canvas.
jsfiddle: http://jsfiddle.net/RZDha/
Data labels are formatted:
plotOptions: {
pie: {
allowPointSelect: false,
cursor: 'pointer',
depth: 35,
animation: false,
minSize: 1,
dataLabels: {
enabled: true,
format: '{point.name}: {point.percentage:.1f} % asd',
// softConnector: false,
// connectorPadding: 5,
// distance: 30
},
showInLegend: true
}
}
The text was updated successfully, but these errors were encountered: