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? 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 forbezierChartScale
=CUSTOM
)final - displayDataPointWhenNoValue → bool
-
true
if you want do display the dot when there is no value specified (The values insideonMissingValue
)final - displayLinesXAxis → bool
-
true
if you want to display a vertical line on each X data point, it only works when there is oneBezierLine
.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 insideonMissingValue
)final - displayYAxis → bool
-
true
if you want to display the value of the Y axis,false
by defaultfinal -
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 forbezierChartScale
of date types Pinch and zoom is used to switch beetwen charts of date typesfinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDataPoints → bool
-
true
if you want to display the data pointsfinal - showVerticalIndicator → bool
-
true
if you want to display the vertical indicatorfinal - snap → bool
-
true
if you want to snap between each data pointfinal - 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 actionfinal - verticalIndicatorColor → Color
-
final
- verticalIndicatorFixedPosition → bool
-
true
if you want to keep the info indicator in a fixed positionfinal - verticalIndicatorStrokeWidth → double
-
width
of the line used for the vertical indicatorfinal - verticalLineFullHeight → bool
-
true
if you want to display the vertical line in full heightfinal - 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 truefinal - 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