CircularSegmentEntry class

Data object defining a segment in a circular chart.

In radial charts a CircularSegmentEntry corresponds to an arc segment of the current ring, for pie charts it is an individual slice.

The portion of the stack this segment will occupy is calculated from the given value, what proportion of a stack this corresponds to depends on the percentageValues property of the chart.

Constructors

CircularSegmentEntry(double value, Color? color, {String? rankKey})
const

Properties

color Color?
The color drawn in the stack for this segment.
final
hashCode int
The hash code for this object.
no setterinherited
rankKey String?
An optional String key, used when animating charts to preserve semantics when transitioning between data points.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
The value of this data point, defines the sweep angle of the arc that is drawn. If the chart being drawn has percentageValues set to false then this segment is drawn in proportion to the total value of all segments in the stack. Otherwise the value is considered the exact percentage of the stack that this segment occupies.
final

Methods

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

Operators

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