Change the percentage text of a Google chart. Colour

How to change the pie chart. Percentage of color. I want to change 33.33% in black. enter image description here

+1
source share
1 answer

You can change it using the option pieSliceTextStyle. For example:

        pieSliceTextStyle: {
            color: 'black'
        }

Note: which will change the font color for all fragments. See pie chart configuration options .

You can also use the option sliceswith the property textStyleto set the color for each fragment in different ways: textStyle - overrides the global pieSliceTextSlice for this fragment.

+5
source

Source: https://habr.com/ru/post/1524462/


All Articles