arun
arun

Reputation: 319

Change the Google pie Chart percentage text Colour

How to change the pie chart Percentage colour I want To change the 33.33% in black colour enter image description here

Upvotes: 5

Views: 7400

Answers (1)

Anto Jurković
Anto Jurković

Reputation: 11258

You can change it using option pieSliceTextStyle. For example:

        pieSliceTextStyle: {
            color: 'black'
        }

Note: that will change font color for all slices. See pie chart configuration options.

You can use also option slices with property textStyle to set color for each slice differently: textStyle - Overrides the global pieSliceTextSlice for this slice.

Upvotes: 8

Related Questions