factor property

double get factor

Pixels per y value unit: the radius divided by the yAxis range. Infinite or NaN while the range is 0.

Implementation

double get factor {
  final content = viewPortHandler.contentRect;
  return math.min(content.width() / 2, content.height() / 2) /
      yAxis.axisRange;
}