XAxis constructor
XAxis({
- required int count,
- AxisFormatter? formatter,
- num interval = 1,
- bool drawLine = true,
- bool drawGrid = false,
- bool drawLabel = true,
- bool zoom = false,
- Color lineColor = const Color(0x99cccccc),
- TextStyle textStyle = const TextStyle(fontSize: 12, color: Colors.grey),
- bool drawDivider = false,
- AxisDivideCountAtAmplify? divideCount,
- 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;