I want to present NaN values on a chart, but I'm having trouble doing so.
The error message says "UnsupportedError (Unsupported operation: Infinity or NaN toInt)".
I want to express the situation where the machine is disconnected, so it has no value, not even equal to 0.
The following is the code I tested.
We have checked your code snippet and found that double.nan or infinity does not support charts. To meet your requirement, you can add null in the datapoints. We have made the necessary modifications to your code snippet according to your specifications, and we have shared it below. Please inform us if you require any additional assistance.
xValueMapper: (datum, index) => datum.x,
yValueMapper: (datum, index) => datum.y),