GNCircularChartWidget constructor
const
GNCircularChartWidget({
- Key? key,
- Color? backgroundColor,
- ImageProvider<
Object> ? backgroundImage, - List<
CircularChartAnnotation> ? annotations, - Color borderColor = Colors.transparent,
- double borderWidth = NumberConst.ZERO_00,
- 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),
- required List<
CircularSeries> series, - ChartTitle title = const ChartTitle(),
- Legend legend = const Legend(),
- String centerX = StringConst.PERCENTAGE_50,
- String centerY = StringConst.PERCENTAGE_50,
- TooltipBehavior? tooltipBehavior,
- ActivationMode selectionGesture = ActivationMode.singleTap,
- bool enableMultiSelection = false,
Implementation
const GNCircularChartWidget({
super.key,
this.backgroundColor,
this.backgroundImage,
this.annotations,
this.borderColor = Colors.transparent,
this.borderWidth = NumberConst.ZERO_00,
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),
required this.series,
this.title = const ChartTitle(),
this.legend = const Legend(),
this.centerX = StringConst.PERCENTAGE_50,
this.centerY = StringConst.PERCENTAGE_50,
this.tooltipBehavior,
this.selectionGesture = ActivationMode.singleTap,
this.enableMultiSelection = false,
});