score:2
Accepted answer
Setting colorSlices() as the load function worked just fine for me.
http://jsfiddle.net/6PbbR/274/
events: {
redraw: function(event) {
colorSlices();
},
load: colorSlices
}
You could also use this.point.x in the formatter to assign the class. I believe that would accomplish the same thing and alleviate the need for the events.
http://jsfiddle.net/6PbbR/280/
dataLabels: {
formatter: function() {
return '<span class="slice slice-'+(this.point.x+1)+'">' +
Highcharts.numberFormat(this.percentage,1,".",",") +' %</span>';
}
}
Source: stackoverflow.com
Related Query
- Highcharts - increment a class name so piechart slices can be uniquely styled in style.css
- Highcharts tips ? How can I add a class or an id to an Hichcharts DOM component?
- Highcharts piechart is not drawing slices from JSON object
- how to add custom class name to tick positioner in Highcharts using javascript
- Can we have same category name in X axis of Highcharts
- Use HTML class as Highcharts table data source
- Highcharts - How can I get the name to display in the pie wedges?
- How can I add a link to a Highcharts series name in the legend?
- Angular Highcharts Series name in piechart with API data
- how can I use rangeselector and navigation in highcharts in the given code
- HighCharts - When I download csv, can I switch data source to new one?
- High Charts PieChart How Can I show point value inside segment and label name outside
- HighCharts Hide Series Name from the Legend
- How can I get access to a Highcharts chart through a DOM-Container?
- HighCharts - How can I turn off the points?
- How can I change the colors of my highcharts piechart?
- How can I hide series from a HighCharts legend?
- Rendering HighCharts to class instead of id?
- How can I hide a series from initially being displayed in Highcharts
- How can I force multiple y-axis in Highcharts to have a common zero
- SyntaxError: JSON.parse: expected property name or '}' while using highcharts
- How can I fix Highcharts error #13?
- remove series by name or id in highcharts
- Can I add an "average" line to Highcharts Chart?
- How can i hide all the Series in highcharts at a time
- Highcharts scatter chart with a name per point
- How can I remove the white border from HighCharts pie chart?
- Can we use Highcharts with React-Native?
- Highcharts - How to hide series name and Y value in tooltip
- Highcharts solidgauge : How can I disable gradient fill?
More Query from same tag
- Navigator in highcharts graph does not work
- How to show Legend Color between two text in Highchart?
- Extra data in point object isn't available for tooltip
- new to highchart and stuck with type datetime , data not plot
- Highcharts: how to be DRY with charts which share some configuration parts?
- Highcharts - three series using left Y axis and the fourth using the right Y axis
- User Editable Title in Highcharts
- How to customise the highcharts plot in R
- highcharts show additional custom data in tooltip
- Parsing JSON data for Highcharts
- Highcharts - Force Categories in x-axis to be shown, even without data
- Line chart is not showing and is considered as a part of the column data
- Python: How to transform DF into Json series?
- How to show overlapping in various columns of highcharts column range graph
- HighCharts JS showing extra xAxis parameter
- Highcharts breaks after getting a variable's value with document.getElementById
- Angular2: highcharts-angular chart doesn't render
- Parse dates from an HTML table in Highcharts
- How to set the x axis dynamically in High Charts 2.3.5
- HighCharts: Reaching options of other charts from point event
- Tool tip formatter for donut highcharts
- Highcharts - Wrong date in tooltip
- Highstock crashing chrome?
- Force Highcharts to display tooltip outside of div/container
- Dynamic Highcharts is not updating
- HighStock HighCharts Setting Flag on Click Event
- Highcharts Stacked Column chart from JSON not charting correct values
- Uncaught TypeError: Object (JS Function) has no method 'apply'
- How can I unclick an event in highcharts on the second click
- highcharts multiple marker hover color doesn't inherit from marker color