ChartLinePainter constructor
ChartLinePainter(
- List<
ChartBean> ? chartBeans, - Color lineColor, {
- double lineWidth = 4,
- double value = 1,
- bool isCurve = true,
- bool isShowXy = true,
- bool isShowYValue = true,
- bool isShowXyRuler = true,
- bool isShowHintX = false,
- bool isShowHintY = false,
- bool isShowBorderTop = false,
- bool isShowBorderRight = false,
- double rulerWidth = 8,
- List<
Color> ? shaderColors, - Color? xyColor = defaultColor,
- int? yNum = 5,
- bool? isShowFloat = false,
- double? fontSize = 10,
- Color? fontColor = defaultColor,
- bool isCanTouch = false,
- Offset? globalPosition,
- bool isShowPressedHintLine = true,
- double pressedPointRadius = 4,
- double pressedHintLineWidth = 0.5,
- Color? pressedHintLineColor = defaultColor,
Implementation
ChartLinePainter(
this.chartBeans,
this.lineColor, {
this.lineWidth = 4,
this.value = 1,
this.isCurve = true,
this.isShowXy = true,
this.isShowYValue = true,
this.isShowXyRuler = true,
this.isShowHintX = false,
this.isShowHintY = false,
this.isShowBorderTop = false,
this.isShowBorderRight = false,
this.rulerWidth = 8,
this.shaderColors,
this.xyColor = defaultColor,
this.yNum = 5,
this.isShowFloat = false,
this.fontSize = 10,
this.fontColor = defaultColor,
this.isCanTouch = false,
this.globalPosition,
this.isShowPressedHintLine = true,
this.pressedPointRadius = 4,
this.pressedHintLineWidth = 0.5,
this.pressedHintLineColor = defaultColor,
});