Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 550
arun Avatar asked Jan 30 '14 14:01

arun


People also ask

How do you change the font color in a pie chart?

Right-click on one label to open the Annotation dialog. In this dialog, you can use the Font Color option to customize the color for current label. If the color has been set to Auto, it means the color of current label will follow the Font Color setting in the the Labels tab of Plot Details dialog.

How do you change the color of a graph on Google?

You can change the color of the lines that connect data points in Google Charts in two subtly different ways: with the colors option to change the chart palette, or with the series option to specify the color for particular series. In the following chart, we set the color of each series explicitly.


1 Answers

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.

like image 60
Anto Jurković Avatar answered Oct 19 '22 00:10

Anto Jurković