transformValues method
void
transformValues(
)
override
Implementation
@override
void transformValues() {
if (xAxis == null ||
yAxis == null ||
segments.isEmpty ||
xAxis!.visibleRange == null ||
yAxis!.visibleRange == null) {
return;
}
final int segmentsCount = segments.length;
if (canFindLinearVisibleIndexes) {
if (visibleIndexes.isNotEmpty) {
final int start = visibleIndexes[0];
final int end = visibleIndexes[1];
for (int i = start; i <= end; i++) {
if (i < segmentsCount) {
final ChartSegment segment = segments[i];
segment.animationFactor = segmentAnimationFactor;
segment.transformValues();
customizeSegment(segment);
}
}
}
} else {
for (final int index in visibleIndexes) {
if (index < segmentsCount) {
final ChartSegment segment = segments[index];
segment.animationFactor = segmentAnimationFactor;
segment.transformValues();
customizeSegment(segment);
}
}
}
}