Issue
How can I define the format for Drilldown Pie Charts in Highcharts similar to the way we do it using series.dataLabels.format
for normal pie charts?
This is code the way I have done it for a normal pie chart. Once I drilldown, I want to it be in some other format than {point.name}({point.count}): {point.y:.1f}%
.
series: {
dataLabels: {
enabled: true,
format: '{point.name}({point.count}): {point.y:.1f}% ',
inside: true,
position: {
x: 10,
y: -100
}
}
}
Solution
You can set wanted format inside the drilldown.series options.
Code:
drilldown: {
series: [
{
dataLabels: {
format: '{point.name} test test test'
},
name: "Chrome",
id: "Chrome",
data: [
[
"v65.0",
0.1
]...
}]
}
Demo: https://jsfiddle.net/BlackLabel/f981q3vj/
API: https://api.highcharts.com/highcharts/drilldown.series
Answered By - Sebastian Wędzel Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.