Pre-calculated sorted X values for optimization.
If provided, avoids re-sorting X values in the paint method.
final List<double>? sortedXValues;