Open siva2204 opened 2 years ago
'dart:ui/painting.dart': Failed assertion: line 52 pos 10: '<optimized out>'
ig this happens when maxPrice and minPrice are the same in a set of data. this happens in fitPrice function
double fitPrice(double y) => priceHeight * (maxPrice - y) / (maxPrice - minPrice);
and thanks for the amazing package!
I have 2 similar issues to siva2204's.
1)
════════ Exception caught by widgets library ═══════════════════════════════════
Cannot interpolate between finite and non-finite values
'dart:ui/lerp.dart':
Failed assertion: line 20 pos 10: '
The relevant error-causing widget was InteractiveChart lib\…\components\interact_chart.dart:98 ════════════════════════════════════════════════════════════════════════════════
2)
════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during paint():
Offset argument contained a NaN value.
'dart:ui/painting.dart':
Failed assertion: line 52 pos 10: '
The relevant error-causing widget was InteractiveChart lib\…\components\interact_chart.dart:98 When the exception was thrown, this was the stack
package:interactive_chart/src/chart_painter.dart:87
package:interactive_chart/src/chart_painter.dart:86
...
The following RenderObject was being processed when the exception was fired: RenderCustomPaint#7f86c relayoutBoundary=up7
RenderObject: RenderCustomPaint#7f86c relayoutBoundary=up7
parentData:
ig this happens when maxPrice and minPrice are the same in a set of data. this happens in fitPrice function
and thanks for the amazing package!