Skip to content
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

Closed
alen-z opened this issue May 21, 2014 · 5 comments
Closed

Data labels go out of canvas in 3D pie chart #3082

alen-z opened this issue May 21, 2014 · 5 comments

Comments

@alen-z
Copy link

alen-z commented May 21, 2014

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/

chart

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
}
}

@alen-z
Copy link
Author

alen-z commented May 21, 2014

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.

@TorsteinHonsi
Copy link
Collaborator

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.

@heliobentzen
Copy link

@stephanevanraes, look at it: http://jsfiddle.net/RZDha/1/

@ghost
Copy link

ghost commented Oct 15, 2014

you have to use http://github.highcharts.com/highcharts-3d.js to have the latest development branch

@heliobentzen
Copy link

Thanks, it's working now, @stephanevanraes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants