SfPyramidChart constructor

const SfPyramidChart({
  1. Key? key,
  2. Color? backgroundColor,
  3. ImageProvider<Object>? backgroundImage,
  4. Color borderColor = Colors.transparent,
  5. double borderWidth = 0.0,
  6. PyramidLegendRenderCallback? onLegendItemRender,
  7. PyramidTooltipCallback? onTooltipRender,
  8. PyramidDataLabelRenderCallback? onDataLabelRender,
  9. DataLabelTapCallback? onDataLabelTapped,
  10. ChartLegendTapCallback? onLegendTapped,
  11. PyramidSelectionCallback? onSelectionChanged,
  12. PyramidTouchInteractionCallback? onChartTouchInteractionUp,
  13. PyramidTouchInteractionCallback? onChartTouchInteractionDown,
  14. PyramidTouchInteractionCallback? onChartTouchInteractionMove,
  15. List<Color> palette = const <Color>[Color.fromRGBO(75, 135, 185, 1), Color.fromRGBO(192, 108, 132, 1), Color.fromRGBO(246, 114, 128, 1), Color.fromRGBO(248, 177, 149, 1), Color.fromRGBO(116, 180, 155, 1), Color.fromRGBO(0, 168, 181, 1), Color.fromRGBO(73, 76, 162, 1), Color.fromRGBO(255, 205, 96, 1), Color.fromRGBO(255, 240, 219, 1), Color.fromRGBO(238, 238, 238, 1)],
  16. EdgeInsets margin = const EdgeInsets.fromLTRB(10, 10, 10, 10),
  17. PyramidSeries series = const PyramidSeries(),
  18. ChartTitle title = const ChartTitle(),
  19. Legend legend = const Legend(),
  20. TooltipBehavior? tooltipBehavior,
  21. ActivationMode selectionGesture = ActivationMode.singleTap,
  22. bool enableMultiSelection = false,
})

Creating an argument constructor of SfPyramidChart class.

Implementation

const SfPyramidChart({
  Key? key,
  this.backgroundColor,
  this.backgroundImage,
  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.palette = const <Color>[
    Color.fromRGBO(75, 135, 185, 1),
    Color.fromRGBO(192, 108, 132, 1),
    Color.fromRGBO(246, 114, 128, 1),
    Color.fromRGBO(248, 177, 149, 1),
    Color.fromRGBO(116, 180, 155, 1),
    Color.fromRGBO(0, 168, 181, 1),
    Color.fromRGBO(73, 76, 162, 1),
    Color.fromRGBO(255, 205, 96, 1),
    Color.fromRGBO(255, 240, 219, 1),
    Color.fromRGBO(238, 238, 238, 1)
  ],
  this.margin = const EdgeInsets.fromLTRB(10, 10, 10, 10),
  this.series = const PyramidSeries(),
  this.title = const ChartTitle(),
  this.legend = const Legend(),
  this.tooltipBehavior,
  this.selectionGesture = ActivationMode.singleTap,
  this.enableMultiSelection = false,
}) : super(key: key);