ExpressiveChart.donut constructor
const
ExpressiveChart.donut({
- required List<
ExpressiveChartPoint> points, - String? centerValue,
- String? centerLabel,
- double aspectRatio = 1,
- String? semanticLabel,
- ExpressiveComponentThemeData? style,
- bool loading = false,
- 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;