# chart

{% embed url="https://pub.dev/packages/charts_flutter" %}

{% embed url="https://google.github.io/charts/flutter/gallery.html" %}

tips change warna chart



```dart
final chartdata = [
  charts.Series<VolumePerDay, DateTime>(
    id: 'Workout',
    colorFn: (_, __) => charts.MaterialPalette.lime.shadeDefault,
    // colorFn: (_, __) => Theme.of(context).accentColor,
    domainFn: (VolumePerDay workout, _) => workout.time,
    measureFn: (VolumePerDay workout, _) => workout.volume,
    data: data,
  )
];
return charts.TimeSeriesChart(
  chartdata,
  animate: false,
);
```

```dart
color: charts.ColorUtil.fromDartColor(Colors.white),
```

{% embed url="https://stackoverflow.com/questions/55075927/how-to-change-the-chart-line-color-to-custom-color-code-value-in-flutter" %}



