BezierChartConfig constructor
BezierChartConfig({
- double verticalIndicatorStrokeWidth = 2.0,
- Color verticalIndicatorColor = Colors.black,
- bool showVerticalIndicator = true,
- bool showDataPoints = true,
- bool displayYAxis = false,
- bool snap = true,
- Color backgroundColor = Colors.transparent,
- TextStyle? xAxisTextStyle,
- TextStyle? yAxisTextStyle,
- double? contentWidth,
- bool pinchZoom = true,
- Color bubbleIndicatorColor = Colors.white,
- LinearGradient? backgroundGradient,
- bool verticalIndicatorFixedPosition = false,
- bool startYAxisFromNonZeroValue = true,
- bool displayLinesXAxis = false,
- int? stepsYAxis,
- Color xLinesColor = Colors.grey,
- bool displayDataPointWhenNoValue = true,
- bool displayPreviousDataPointWhenNoValue = false,
- TextStyle bubbleIndicatorLabelStyle = const TextStyle(color: Colors.grey, fontWeight: FontWeight.w700, fontSize: 9),
- TextStyle bubbleIndicatorTitleStyle = const TextStyle(color: Colors.grey, fontWeight: FontWeight.w600, fontSize: 9.5),
- TextStyle bubbleIndicatorValueStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 11),
- NumberFormat? bubbleIndicatorValueFormat,
- ScrollPhysics physics = const AlwaysScrollableScrollPhysics(),
- bool updatePositionOnTap = false,
- 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;