I’m working on this donut chart
I was wondering if it’s possible to assign a different custom CSS class to each data label in order to style each one with a different icon and to correct the positioning issues.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Solved (thanx to fcodebue)!
If anyone can find this useful…
Here’s the complete code:
http://jsfiddle.net/fcodebue/qkJtk/8/
Starting from the highcharts donut oie demo -to assign a custom class from the array to each label modify the the formatter like this:
where
boheti2is a class for the general styling for external labels, andclasses2is the name of the classes array