SfCircularChart constructor
const
SfCircularChart({
- Key? key,
- Color? backgroundColor,
- ImageProvider<
Object> ? backgroundImage, - List<
CircularChartAnnotation> ? annotations, - Color borderColor = Colors.transparent,
- double borderWidth = 0.0,
- CircularLegendRenderCallback? onLegendItemRender,
- CircularTooltipCallback? onTooltipRender,
- CircularDataLabelRenderCallback? onDataLabelRender,
- DataLabelTapCallback? onDataLabelTapped,
- ChartLegendTapCallback? onLegendTapped,
- CircularSelectionCallback? onSelectionChanged,
- CircularTouchInteractionCallback? onChartTouchInteractionUp,
- CircularTouchInteractionCallback? onChartTouchInteractionDown,
- CircularTouchInteractionCallback? onChartTouchInteractionMove,
- CircularShaderCallback? onCreateShader,
- List<
Color> ? palette, - EdgeInsets margin = const EdgeInsets.fromLTRB(10, 10, 10, 10),
- List<
CircularSeries> series = const <CircularSeries>[], - ChartTitle title = const ChartTitle(),
- Legend legend = const Legend(),
- String centerX = '50%',
- String centerY = '50%',
- TooltipBehavior? tooltipBehavior,
- ActivationMode selectionGesture = ActivationMode.singleTap,
- bool enableMultiSelection = false,
Creating an argument constructor of SfCircularChart class.
Implementation
const SfCircularChart({
Key? key,
this.backgroundColor,
this.backgroundImage,
this.annotations,
this.borderColor = Colors.transparent,
this.borderWidth = 0.0,
this.onLegendItemRender,
this.onTooltipRender,
this.onDataLabelRender,
this.onDataLabelTapped,
this.onLegendTapped,
this.onSelectionChanged,
this.onChartTouchInteractionUp,
this.onChartTouchInteractionDown,
this.onChartTouchInteractionMove,
this.onCreateShader,
this.palette,
this.margin = const EdgeInsets.fromLTRB(10, 10, 10, 10),
this.series = const <CircularSeries>[],
this.title = const ChartTitle(),
this.legend = const Legend(),
this.centerX = '50%',
this.centerY = '50%',
this.tooltipBehavior,
this.selectionGesture = ActivationMode.singleTap,
this.enableMultiSelection = false,
}) : super(key: key);