DoughnutSeries<T, D> constructor
const
DoughnutSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - CircularSeriesRendererCreatedCallback<
T, D> ? onRendererCreated, - ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- List<
T> ? dataSource, - required ChartValueMapper<
T, D> ? xValueMapper, - required ChartValueMapper<
T, num> ? yValueMapper, - ChartValueMapper<
T, Color> ? pointColorMapper, - ChartShaderMapper? pointShaderMapper,
- ChartValueMapper<
T, String> ? pointRadiusMapper, - ChartValueMapper<
T, String> ? dataLabelMapper, - ChartValueMapper<
T, dynamic> ? sortFieldValueMapper, - int startAngle = 0,
- int endAngle = 360,
- String radius = '80%',
- String innerRadius = '50%',
- bool explode = false,
- bool explodeAll = false,
- ActivationMode explodeGesture = ActivationMode.singleTap,
- String explodeOffset = '10%',
- int? explodeIndex,
- double? groupTo,
- CircularChartGroupMode? groupMode,
- PointRenderMode? pointRenderMode,
- EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
- Color strokeColor = Colors.transparent,
- double strokeWidth = 2.0,
- DataLabelSettings dataLabelSettings = const DataLabelSettings(),
- bool enableTooltip = true,
- String? name,
- double opacity = 1.0,
- double animationDuration = 1500,
- double animationDelay = 0,
- SelectionBehavior? selectionBehavior,
- SortingOrder sortingOrder = SortingOrder.none,
- LegendIconType legendIconType = LegendIconType.seriesType,
- CornerStyle cornerStyle = CornerStyle.bothFlat,
- List<
int> ? initialSelectedDataIndexes,
Creating an argument constructor of DoughnutSeries class.
Implementation
const DoughnutSeries({
super.key,
super.onCreateRenderer,
super.onRendererCreated,
super.onPointTap,
super.onPointDoubleTap,
super.onPointLongPress,
super.dataSource,
required super.xValueMapper,
required super.yValueMapper,
super.pointColorMapper,
super.pointShaderMapper,
super.pointRadiusMapper,
super.dataLabelMapper,
super.sortFieldValueMapper,
super.startAngle = 0,
super.endAngle = 360,
super.radius = '80%',
super.innerRadius = '50%',
this.explode = false,
this.explodeAll = false,
this.explodeGesture = ActivationMode.singleTap,
this.explodeOffset = '10%',
this.explodeIndex,
super.groupTo,
super.groupMode,
super.pointRenderMode,
super.emptyPointSettings,
Color strokeColor = Colors.transparent,
double strokeWidth = 2.0,
super.dataLabelSettings,
super.enableTooltip = true,
super.name,
super.opacity,
super.animationDuration,
super.animationDelay,
super.selectionBehavior,
super.sortingOrder,
super.legendIconType,
super.cornerStyle = CornerStyle.bothFlat,
super.initialSelectedDataIndexes,
}) : super(
borderColor: strokeColor,
borderWidth: strokeWidth,
);