Skip to content

Instantly share code, notes, and snippets.



Created May 29, 2020
What would you like to do?
class MyChartBody extends StatelessWidget {
Widget build(BuildContext context) {
final List<DataPoint> args = ModalRoute.of(context).settings.arguments;
var seriesList = [charts.Series<DataPoint, int>(
id: 'Sales',
colorFn: (_, __) =>,
domainFn: (_,ind) => ind,
measureFn: (DataPoint dp, _) => dp.num,
data: args)];
return ExponentialCurve(seriesList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment