YAxis constructor

YAxis({
  1. required num max,
  2. num min = 0,
  3. AxisFormatter? formatter,
  4. bool drawLabel = true,
  5. int count = 5,
  6. bool zoom = false,
  7. bool drawLine = true,
  8. bool drawGrid = false,
  9. Color lineColor = const Color(0x99cccccc),
  10. TextStyle textStyle = const TextStyle(fontSize: 12, color: Colors.grey),
  11. bool drawDivider = true,
  12. AxisOffset? offset,
  13. 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, '暂不支持垂直方向缩放');