Ryosuke Yokota
Ryosuke Yokota

Reputation: 93

How can I change the label color of the graph

I wanna change the label color of the graph.

I'm using google's charts library (https://github.com/google/charts).

enter image description here

Upvotes: 2

Views: 3266

Answers (1)

Sunny
Sunny

Reputation: 3265

You can change the color using axis

var axis = charts.NumericAxisSpec(
        renderSpec: charts.GridlineRendererSpec(
            labelStyle: charts.TextStyleSpec(
                fontSize: 10, color: charts.MaterialPalette.white), //chnage white color as per your requirement.
            ));

And define in the graph

primaryMeasureAxis: axis,
      domainAxis: axis,

Upvotes: 5

Related Questions