SparkChartPlotBand class
Renders plot band..
Plot band is also known as stripline, which is used to shade the different ranges in plot area with different colors to improve the readability of the chart.
Plot bands are drawn based on the axis.
Provides the property of start, end, color, borderColor, and borderWidth to customize the appearance.
- Annotations
Constructors
- SparkChartPlotBand({Color color = const Color.fromRGBO(191, 212, 252, 0.5), double? start, double? end, Color? borderColor, double borderWidth = 0})
-
Creates an instance of spark chart plot band to add and customizes the
plot band in spark chart widget. To make, the plot band visible, define
the value to its
start
andend
property.const
Properties
- borderColor → Color?
-
Customizes the border color of the plot band. To make border visible for
plot band, need to set both the border color and border width.
final
- borderWidth → double
-
Customizes the border width of the plot band. To make border visible for
plot band, need to set both the border color and border width.
final
- color → Color
-
Customizes the color of the plot band. Since the plot band is rendered
above the axis line, you can customize the color of the plot band for a
transparent view of the axis line.
final
- end → double?
-
Customizes the end position. Define any value between the provided data
range as the end value. To make the plot band visible, need to set both
the start and end property.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → double?
-
Customizes the start position. Define any value between the provided data
range as the start value. To make the plot band visible, need to set both
the start and end property.
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.
override