ChartSegment class abstract
Creates the segments for chart series.
It has the public method and properties to customize the segment in the chart series, User can customize the calculation of the segment points by using the method calculateSegmentPoints. It has the property to store the old value of the series to support dynamic animation.
Provides the public properties color, stroke color, fill paint, stroke paint, series and old series to customize and dynamically change each segment in the chart.
- Implementers
- AreaSegment
- BarSegment
- BoxAndWhiskerSegment
- BubbleSegment
- CandleSegment
- ColumnSegment
- DoughnutSegment
- ErrorBarSegment
- FastLineSegment
- FunnelSegment
- HiloOpenCloseSegment
- HiloSegment
- HistogramSegment
- LineSegment
- PieSegment
- PyramidSegment
- RadialBarSegment
- RangeAreaSegment
- RangeColumnSegment
- ScatterSegment
- SplineAreaSegment
- SplineRangeAreaSegment
- SplineSegment
- StackedArea100Segment
- StackedAreaSegment
- StackedBar100Segment
- StackedBarSegment
- StackedColumn100Segment
- StackedColumnSegment
- StackedLine100Segment
- StackedLineSegment
- StepAreaSegment
- StepLineSegment
- WaterfallSegment
Constructors
Properties
- animationFactor ↔ double
-
Animation factor value.
getter/setter pair
- currentSegmentIndex ↔ int
-
Current index value.
getter/setter pair
- fillPaint → Paint
-
Fill paint of the segment.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty ↔ bool
-
Specifies the segment has empty point.
getter/setter pair
- isSelected ↔ bool
-
getter/setter pair
- isVisible ↔ bool
-
Specifies the segment is visible or not for circular, funnel and pyramid segments only.
Not applicable for cartesian segments.
getter/setter pair
-
points
↔ List<
Offset> -
Current point offset value.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokePaint → Paint
-
Stroke paint of the segment.
final
Methods
-
calculateSegmentPoints(
) → void - Calculates the rendering bounds of a segment.
-
contains(
Offset position) → bool -
copyOldSegmentValues(
double seriesAnimationFactor, double segmentAnimationFactor) → void -
dispose(
) → void - To dispose the objects.
-
getFillPaint(
) → Paint - Gets the color of the series.
-
getStrokePaint(
) → Paint - Gets the border color of the series.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onPaint(
Canvas canvas) → void - Draws segment in series bounds.
-
tooltipInfo(
{Offset? position, int? pointIndex}) → TooltipInfo? -
toString(
) → String -
A string representation of this object.
inherited
-
trackballInfo(
Offset position) → TrackballInfo? -
transformValues(
) → void - Transforms the x and y values to screen coordinates.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited