ExpressiveChart.donut constructor

const ExpressiveChart.donut({
  1. required List<ExpressiveChartPoint> points,
  2. String? centerValue,
  3. String? centerLabel,
  4. double aspectRatio = 1,
  5. String? semanticLabel,
  6. ExpressiveComponentThemeData? style,
  7. bool loading = false,
  8. Key? key,
})

Parts of a whole as a ring, centerValue over centerLabel in its hole, a legend of each part's value under it.

Implementation

const ExpressiveChart.donut({
  required this.points,
  this.centerValue,
  this.centerLabel,
  this.aspectRatio = 1,
  this.semanticLabel,
  this.style,
  this.loading = false,
  super.key,
}) : kind = ExpressiveChartType.donut,
     highlight = null,
     domain = const ExpressiveChartDomain.zero(),
     labels = ExpressiveChartLabels.all,
     span = null,
     ticks = null,
     emptyLabel = null,
     first = null,
     second = null,
     band = null,
     target = null,
     color = null,
     tooltip = false;