ChartLine constructor
const
ChartLine({
- Key? key,
- required Size size,
- required List<
ChartBean> chartBeans, - double lineWidth = 4,
- bool isCurve = true,
- List<
Color> ? shaderColors, - required Color lineColor,
- Color? xyColor,
- Color? backgroundColor,
- bool isShowXy = true,
- bool isShowYValue = true,
- bool isShowXyRuler = true,
- bool isShowHintX = false,
- bool isShowHintY = false,
- bool isShowBorderTop = false,
- bool isShowBorderRight = false,
- int? yNum,
- bool? isShowFloat,
- double? fontSize,
- Color? fontColor,
- double rulerWidth = 8,
- Duration duration = const Duration(milliseconds: 800),
- bool isAnimation = true,
- bool isReverse = false,
- bool isCanTouch = false,
- bool isShowPressedHintLine = true,
- double pressedPointRadius = 4,
- double pressedHintLineWidth = 0.5,
- Color? pressedHintLineColor,
Implementation
const ChartLine({
Key? key,
required this.size,
required this.chartBeans,
this.lineWidth = 4,
this.isCurve = true,
this.shaderColors,
required this.lineColor,
this.xyColor,
this.backgroundColor,
this.isShowXy = true,
this.isShowYValue = true,
this.isShowXyRuler = true,
this.isShowHintX = false,
this.isShowHintY = false,
this.isShowBorderTop = false,
this.isShowBorderRight = false,
this.yNum,
this.isShowFloat,
this.fontSize,
this.fontColor,
this.rulerWidth = 8,
this.duration = const Duration(milliseconds: 800),
this.isAnimation = true,
this.isReverse = false,
this.isCanTouch = false,
this.isShowPressedHintLine = true,
this.pressedPointRadius = 4,
this.pressedHintLineWidth = 0.5,
this.pressedHintLineColor,
}) : super(key: key);