You can set the inline style created by Highschart.js by adding a dataLabels block to plotOptions → pie and defining some style properties:
plotOptions: { pie: { cursor: 'pointer', dataLabels: { enabled: true, color: 'red', style: { fontFamily: '\'Lato\', sans-serif', lineHeight: '18px', fontSize: '17px' } } } }
and here is your updated tinker .
If you want to control the font color also in the style block, you need to use the fill property.
These are the properties that are set by default (and you can override them with style settings):
font-family:'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#666; line-height:14px; fill:#666;
but you can define a lot more if you need to.
Note. . You can also control the style for individual labels by passing the dataLabels object through the data block, as you defined the style of one of your pie clips:
{ name: 'Example1', y: 40, sliced: true, color: 'rgb(10,200,23)', dataLabels: { style:{ }} }
source share