mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Don't start the y axis always with zero
This commit is contained in:
@@ -42,6 +42,9 @@ class WeightChartWidget extends StatelessWidget {
|
||||
)
|
||||
],
|
||||
defaultRenderer: new charts.LineRendererConfig(includePoints: true),
|
||||
primaryMeasureAxis: new charts.NumericAxisSpec(
|
||||
tickProviderSpec: new charts.BasicNumericTickProviderSpec(zeroBound: false),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,9 @@ class LogChartWidget extends StatelessWidget {
|
||||
);
|
||||
}),
|
||||
],
|
||||
primaryMeasureAxis: new charts.NumericAxisSpec(
|
||||
tickProviderSpec: new charts.BasicNumericTickProviderSpec(zeroBound: false),
|
||||
),
|
||||
//behaviors: [new charts.SeriesLegend()],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user