KLineChartStyle constructor
const
KLineChartStyle({
- Color backgroundColor = Colors.transparent,
- Color gridLineColor = const Color(0x33607d8b),
- double gridLineWidth = 0.0,
- TextStyle rulerTextStyle = const TextStyle(color: Color(0xff999999), fontSize: 12.0, height: 1.0),
- Color highLowLineColor = const Color(0xff999999),
- double highLowLineWidth = 1.0,
- TextStyle highLowTextStyle = const TextStyle(color: Color(0xff666666), fontSize: 13.0, height: 1.0),
- Color currentPriceLineColor = Colors.black54,
- double currentPriceLineWidth = 1.0,
- Color currentPriceBackgroundColor = Colors.white,
- TextStyle currentPriceTextStyle = const TextStyle(color: Color(0xff999999), fontSize: 12.0, height: 1.0),
- Color timeLineColor = Colors.blue,
- double timeLineWidth = 1.0,
- Color timeLineFillColor = const Color(0xff40c4ff),
Creates main chart visual styling.
Implementation
const KLineChartStyle({
this.backgroundColor = Colors.transparent,
this.gridLineColor = const Color(0x33607d8b),
this.gridLineWidth = 0.0,
this.rulerTextStyle = const TextStyle(
color: Color(0xff999999),
fontSize: 12.0,
height: 1.0,
),
this.highLowLineColor = const Color(0xff999999),
this.highLowLineWidth = 1.0,
this.highLowTextStyle = const TextStyle(
color: Color(0xff666666),
fontSize: 13.0,
height: 1.0,
),
this.currentPriceLineColor = Colors.black54,
this.currentPriceLineWidth = 1.0,
this.currentPriceBackgroundColor = Colors.white,
this.currentPriceTextStyle = const TextStyle(
color: Color(0xff999999),
fontSize: 12.0,
height: 1.0,
),
this.timeLineColor = Colors.blue,
this.timeLineWidth = 1.0,
this.timeLineFillColor = const Color(0xff40c4ff),
});