Closed papakay closed 2 years ago
mee too
@papakay : Thanks very much for reporting this, and my appologies for the delay. If still relevant: This "all zeros issue" is now fixed in the latest version 0.3.1. Please take a look at
https://pub.dev/packages/flutter_charts/changelog
An example that failed before the change and is now fixed can be seen in
https://github.com/mzimmerm/flutter_charts/blob/master/example1/lib/main.dart
around
case ExamplesEnum.ex900ErrorFixUserDataAllZero:
/// Currently, setting [ChartDate.dataRows] requires to also set all of
/// [chartData.xLabels], [chartData.dataRowsLegends], [chartData.dataRowsColors]
// Fix was: Add default legend to ChartData constructor AND fix scaling util_dart.dart scaleValue.
chartData = ChartData();
chartData.dataRows = [
[0.0, 0.0, 0.0],
];
// Note: When ChartData is defined,
// ALL OF chartData.xLabels, chartData.dataRowsLegends, chartData.dataRowsColors
// must be set by client
chartData.xLabels = ['Wolf', 'Deer', 'Mouse'];
chartData.dataRowsLegends = [
'Row 1',
];
chartData.dataRowsColors = [
Colors.blue,
];
@papakay Thanks again for reporting this issue. As this is now working (as of 0.3.1) I will go ahead and close this item.
Thanks a lot @mzimmerm for the great work!
Hi, I want to really commend the great work done so far with this library.
I experience the error above when i have data rows as below
Part of the error message: