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,
);
color: charts.ColorUtil.fromDartColor(Colors.white),