google / charts

https://pub.dev/packages/charts_flutter
Apache License 2.0
2.81k stars 1.23k forks source link

Custom measure values #682

Closed TercyoStorck closed 2 years ago

TercyoStorck commented 3 years ago

Hi. How can I set custom values? Where is 25 I would like to show 30 and where is 75 o would like to show 70.

image

TercyoStorck commented 2 years ago

Finally I found it! Thanks all for helping.

primaryMeasureAxis: charts.NumericAxisSpec(
  tickProviderSpec: charts.StaticNumericTickProviderSpec(
    <charts.TickSpec<num>>[
      charts.TickSpec(0, label: '0'),
      charts.TickSpec(30, label: '30'),
      charts.TickSpec(50, label: '50'),
      charts.TickSpec(70, label: '70'),
      charts.TickSpec(100, label: '100'),
    ],
  ),
),