ChartLinePainter constructor

ChartLinePainter(
  1. List<ChartBean>? chartBeans,
  2. Color lineColor, {
  3. double lineWidth = 4,
  4. double value = 1,
  5. bool isCurve = true,
  6. bool isShowXy = true,
  7. bool isShowYValue = true,
  8. bool isShowXyRuler = true,
  9. bool isShowHintX = false,
  10. bool isShowHintY = false,
  11. bool isShowBorderTop = false,
  12. bool isShowBorderRight = false,
  13. double rulerWidth = 8,
  14. List<Color>? shaderColors,
  15. Color? xyColor = defaultColor,
  16. int? yNum = 5,
  17. bool? isShowFloat = false,
  18. double? fontSize = 10,
  19. Color? fontColor = defaultColor,
  20. bool isCanTouch = false,
  21. Offset? globalPosition,
  22. bool isShowPressedHintLine = true,
  23. double pressedPointRadius = 4,
  24. double pressedHintLineWidth = 0.5,
  25. 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,
});