isDataXVisible method

bool isDataXVisible(
  1. double dataX
)

True if a data x-value would land in the visible canvas range.

Implementation

bool isDataXVisible(double dataX) {
  final cx = toCanvasX(dataX);
  return cx >= left && cx <= right;
}