computeNonEmptyYValues method
void
computeNonEmptyYValues(
)
override
Implementation
@override
void computeNonEmptyYValues() {
nonEmptyYValues.clear();
if (emptyPointSettings.mode == EmptyPointMode.drop) {
final List<num> yValuesCopy = <num>[...yValues];
nonEmptyYValues = yValuesCopy;
for (int i = 0; i < dataCount; i++) {
if (yValues[i].isNaN) {
nonEmptyYValues[i] = 0;
}
}
} else if (emptyPointSettings.mode == EmptyPointMode.gap) {
super.computeNonEmptyYValues();
} else {
final List<num> yValuesCopy = <num>[...yValues];
nonEmptyYValues = yValuesCopy;
}
}