How to change Chart's String font?

How to change Chart's String font?

  

Dear all

I want to change the pie chart's string font to have 6,7,33 display bigger.


I think [font] property is correct,so I added it to  plotOptions.

But it's doesn't work.

    plotOptions: {
        pie: {
            dataLabels: {
                enabled: true,
                cursor: 'pointer',
                font:6,
                format: '{point.y}',
                distance: -50,
            }
        }
    }

where should I add it to?

Solution

Hi Wang,

You can do that with the following JSON:

plotOptions: {
    pie: {
        dataLabels: {
            style: {
                fontSize: '20px'
            }
        }
    }
}

In your Preparation, pass that JSON to the "AdvancedFormat_Init" action and then select that action's output parameter in your chart's "AdvancedFormat" property.

Solution

Hi Wang,

Please refer to the Highcharts API in the future, it will save you trouble.