BezierChartConfig constructor

BezierChartConfig({
  1. double verticalIndicatorStrokeWidth = 2.0,
  2. Color verticalIndicatorColor = Colors.black,
  3. bool showVerticalIndicator = true,
  4. bool showDataPoints = true,
  5. bool displayYAxis = false,
  6. bool snap = true,
  7. Color backgroundColor = Colors.transparent,
  8. TextStyle? xAxisTextStyle,
  9. TextStyle? yAxisTextStyle,
  10. double footerHeight = 35.0,
  11. double? contentWidth,
  12. bool pinchZoom = true,
  13. Color bubbleIndicatorColor = Colors.white,
  14. LinearGradient? backgroundGradient,
  15. bool verticalIndicatorFixedPosition = false,
  16. bool startYAxisFromNonZeroValue = true,
  17. bool displayLinesXAxis = false,
  18. int? stepsYAxis,
  19. Color xLinesColor = Colors.grey,
  20. bool displayDataPointWhenNoValue = true,
  21. bool displayPreviousDataPointWhenNoValue = false,
  22. TextStyle bubbleIndicatorLabelStyle = const TextStyle(color: Colors.grey, fontWeight: FontWeight.w700, fontSize: 9),
  23. TextStyle bubbleIndicatorTitleStyle = const TextStyle(color: Colors.grey, fontWeight: FontWeight.w600, fontSize: 9.5),
  24. TextStyle bubbleIndicatorValueStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 11),
  25. NumberFormat? bubbleIndicatorValueFormat,
  26. ScrollPhysics physics = const AlwaysScrollableScrollPhysics(),
  27. bool updatePositionOnTap = false,
  28. bool? verticalLineFullHeight,
})

Implementation

BezierChartConfig({
  this.verticalIndicatorStrokeWidth = 2.0,
  this.verticalIndicatorColor = Colors.black,
  this.showVerticalIndicator = true,
  this.showDataPoints = true,
  this.displayYAxis = false,
  this.snap = true,
  this.backgroundColor = Colors.transparent,
  this.xAxisTextStyle,
  this.yAxisTextStyle,
  this.footerHeight = 35.0,
  this.contentWidth,
  this.pinchZoom = true,
  this.bubbleIndicatorColor = Colors.white,
  this.backgroundGradient,
  this.verticalIndicatorFixedPosition = false,
  this.startYAxisFromNonZeroValue = true,
  this.displayLinesXAxis = false,
  this.stepsYAxis,
  this.xLinesColor = Colors.grey,
  this.displayDataPointWhenNoValue = true,
  this.displayPreviousDataPointWhenNoValue = false,
  this.bubbleIndicatorLabelStyle = const TextStyle(
    color: Colors.grey,
    fontWeight: FontWeight.w700,
    fontSize: 9,
  ),
  this.bubbleIndicatorTitleStyle = const TextStyle(
    color: Colors.grey,
    fontWeight: FontWeight.w600,
    fontSize: 9.5,
  ),
  this.bubbleIndicatorValueStyle = const TextStyle(
    color: Colors.black,
    fontWeight: FontWeight.bold,
    fontSize: 11,
  ),
  this.bubbleIndicatorValueFormat,
  this.physics = const AlwaysScrollableScrollPhysics(),
  this.updatePositionOnTap = false,
  bool? verticalLineFullHeight,
}) : verticalLineFullHeight =
          verticalLineFullHeight ?? verticalIndicatorFixedPosition;