YAxis constructor
YAxis({
- required num max,
- num min = 0,
- AxisFormatter? formatter,
- bool drawLabel = true,
- int count = 5,
- bool zoom = false,
- bool drawLine = true,
- bool drawGrid = false,
- Color lineColor = const Color(0x99cccccc),
- TextStyle textStyle = const TextStyle(fontSize: 12, color: Colors.grey),
- bool drawDivider = true,
- AxisOffset? offset,
- double padding = 0,
Implementation
YAxis({
required this.max,
this.min = 0,
this.formatter,
this.drawLabel = true,
this.count = 5,
this.zoom = false,
this.drawLine = true,
this.drawGrid = false,
this.lineColor = const Color(0x99cccccc),
this.textStyle = const TextStyle(fontSize: 12, color: Colors.grey),
this.drawDivider = true,
this.offset,
this.padding = 0,
}) : assert(zoom == false, '暂不支持垂直方向缩放');