T
T
topi7682021-12-01 13:45:09
Google Sheets
topi768, 2021-12-01 13:45:09

How to change percentage and title color in google sheets chart?

I have created a chart and in it the percentages and the title must be black instead of gray.
61a751e10946f028489439.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2021-12-03
@topi768

I guess not. Unfortunately, the charts have remained at a prehistoric level of support. Recent updates seem to offer hope, but still nothing. For example, the API does not support half of the properties. With what it is connected and how to treat - it is not clear. I would recommend setting up the Table and creating charts already in Data Studio , but this is an additional hassle.
Please note that this is a Google Sheets issue and nothing else. By themselves, Google Charts work perfectly.
I've tried probably everything

const mode = chart.modify()
    .asPieChart()
      .asPieChart()
      .setTransposeRowsAndColumns(false)
      .setNumHeaders(1)
      .setOption('bubble.stroke', '#000000')
      .setOption('annotations.domain.textStyle.color', '#808080')
      .setOption('textStyle.color', '#000000')
      .setOption('legend.textStyle.color', '#191919')
      .setOption('pieSliceTextStyle.color', '#000000')
      .setOption('titleTextStyle.color', '#757575')
      .setOption('annotations.total.textStyle.color', '#808080')
    .build();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question