-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offset argument contained a NaN value #18
Comments
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:
The text was updated successfully, but these errors were encountered: