BezierChartConfig class

BezierChartConfig allows the customization of the BezierChart widget

Constructors

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 footerHeight = 35.0, 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})

Properties

backgroundColor Color
Color of the background of the chart
final
backgroundGradient LinearGradient?
Gradient of the background of the chart
final
bubbleIndicatorColor Color
Color of the bubble indicator, it's white by default
final
bubbleIndicatorLabelStyle TextStyle
TextStyle for the label displayed inside the bubble indicator
final
bubbleIndicatorTitleStyle TextStyle
TextStyle for the title displayed inside the bubble indicator
final
bubbleIndicatorValueFormat → NumberFormat?
NumberFormat for the value displayed inside the bubble indicator
final
bubbleIndicatorValueStyle TextStyle
TextStyle for the value displayed inside the bubble indicator
final
contentWidth double?
If the contentWidth is upper than the current width then the content will be scrollable (only valid for bezierChartScale = CUSTOM)
final
displayDataPointWhenNoValue bool
true if you want do display the dot when there is no value specified (The values inside onMissingValue)
final
displayLinesXAxis bool
true if you want to display a vertical line on each X data point, it only works when there is one BezierLine.
final
displayPreviousDataPointWhenNoValue bool
true if you want to display the same value as the previous value when there is no value specified (Either from the data points or from The values inside onMissingValue)
final
displayYAxis bool
true if you want to display the value of the Y axis, false by default
final
footerHeight double
Height of the footer
final
hashCode int
The hash code for this object.
no setterinherited
physics ScrollPhysics
The physics for horizontal ScrollView
final
pinchZoom bool
true if you want to enable pinch Zoom for bezierChartScale of date types Pinch and zoom is used to switch beetwen charts of date types
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDataPoints bool
true if you want to display the data points
final
showVerticalIndicator bool
true if you want to display the vertical indicator
final
snap bool
true if you want to snap between each data point
final
startYAxisFromNonZeroValue bool
true if you want to start the values of Y axis from the minimum value of your Y values.
final
stepsYAxis int?
If displayYAxis is true, then you can set a positive value to display the steps of Y axis values e.g 1: stepsYAxis : 5 , if your maxValue is 100, then the Y values should be: 0,5,10,15 .... 100 e.g 2: stepsYAxis : 10 , if your maxValue is 100, then the Y values should be: 10,20,30,40 .... 100
final
updatePositionOnTap bool
true if you want do update bubble info on tap action instead of long press. This option will disable tap to hide bubble action
final
verticalIndicatorColor Color
final
verticalIndicatorFixedPosition bool
true if you want to keep the info indicator in a fixed position
final
verticalIndicatorStrokeWidth double
width of the line used for the vertical indicator
final
verticalLineFullHeight bool
true if you want to display the vertical line in full height
final
xAxisTextStyle TextStyle?
TextStyle of the text of the X Axis values
final
xLinesColor Color
Color for the vertical line in each X point, only works when displayLinesXAxis is true
final
yAxisTextStyle TextStyle?
TextStyle of the text of the Y Axis values
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited