INNER CODE UNIT · Dart

CircularSegmentEntry

xqwzts/flutter_circular_chart · lib/src/entry.dart:11

class CircularSegmentEntry {
  const CircularSegmentEntry(this.value, this.color, {this.rankKey});

  /// 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 double value;

  /// The color drawn in the stack for this segment.
  final Color color;

  /// An optional String key, used when animating charts to preserve semantics when
  /// transitioning between data points.
  final String rankKey;

  String toString() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…