GNCircularChartWidget constructor

const GNCircularChartWidget({
  1. Key? key,
  2. Color? backgroundColor,
  3. ImageProvider<Object>? backgroundImage,
  4. List<CircularChartAnnotation>? annotations,
  5. Color borderColor = Colors.transparent,
  6. double borderWidth = NumberConst.ZERO_00,
  7. CircularLegendRenderCallback? onLegendItemRender,
  8. CircularTooltipCallback? onTooltipRender,
  9. CircularDataLabelRenderCallback? onDataLabelRender,
  10. DataLabelTapCallback? onDataLabelTapped,
  11. ChartLegendTapCallback? onLegendTapped,
  12. CircularSelectionCallback? onSelectionChanged,
  13. CircularTouchInteractionCallback? onChartTouchInteractionUp,
  14. CircularTouchInteractionCallback? onChartTouchInteractionDown,
  15. CircularTouchInteractionCallback? onChartTouchInteractionMove,
  16. CircularShaderCallback? onCreateShader,
  17. List<Color>? palette,
  18. EdgeInsets margin = const EdgeInsets.fromLTRB(10, 10, 10, 10),
  19. required List<CircularSeries> series,
  20. ChartTitle title = const ChartTitle(),
  21. Legend legend = const Legend(),
  22. String centerX = StringConst.PERCENTAGE_50,
  23. String centerY = StringConst.PERCENTAGE_50,
  24. TooltipBehavior? tooltipBehavior,
  25. ActivationMode selectionGesture = ActivationMode.singleTap,
  26. 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,
});