XAxis constructor

XAxis({
  1. required int count,
  2. AxisFormatter? formatter,
  3. num interval = 1,
  4. bool drawLine = true,
  5. bool drawGrid = false,
  6. bool drawLabel = true,
  7. bool zoom = false,
  8. Color lineColor = const Color(0x99cccccc),
  9. TextStyle textStyle = const TextStyle(fontSize: 12, color: Colors.grey),
  10. bool drawDivider = false,
  11. AxisDivideCountAtAmplify? divideCount,
  12. num? max,
})

Implementation

XAxis({
  required this.count,
  this.formatter,
  this.interval = 1,
  this.drawLine = true,
  this.drawGrid = false,
  this.drawLabel = true,
  this.zoom = false,
  this.lineColor = const Color(0x99cccccc),
  this.textStyle = const TextStyle(fontSize: 12, color: Colors.grey),
  this.drawDivider = false,
  this.divideCount,
  num? max,
}) : max = max ?? count * interval;