PyramidSeries<T, D> constructor

const PyramidSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. PyramidSeriesRendererCreatedCallback<T, D>? onRendererCreated,
  4. ChartPointInteractionCallback? onPointTap,
  5. ChartPointInteractionCallback? onPointDoubleTap,
  6. ChartPointInteractionCallback? onPointLongPress,
  7. List<T>? dataSource,
  8. ChartValueMapper<T, D>? xValueMapper,
  9. ChartValueMapper<T, num>? yValueMapper,
  10. ChartValueMapper<T, Color>? pointColorMapper,
  11. ChartValueMapper<T, String>? textFieldMapper,
  12. String? name,
  13. num? explodeIndex,
  14. String height = '80%',
  15. String width = '80%',
  16. PyramidMode pyramidMode = PyramidMode.linear,
  17. double gapRatio = 0,
  18. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  19. String explodeOffset = '10%',
  20. bool explode = false,
  21. ActivationMode explodeGesture = ActivationMode.singleTap,
  22. Color borderColor = Colors.transparent,
  23. double borderWidth = 2.0,
  24. LegendIconType legendIconType = LegendIconType.seriesType,
  25. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  26. double animationDuration = 1500,
  27. double animationDelay = 0,
  28. double opacity = 1.0,
  29. SelectionBehavior? selectionBehavior,
  30. List<int>? initialSelectedDataIndexes,
})

Creates an instance of pyramid series base.

Implementation

const PyramidSeries({
  super.key,
  this.onCreateRenderer,
  this.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.dataSource,
  super.xValueMapper,
  this.yValueMapper,
  super.pointColorMapper,
  ChartValueMapper<T, String>? textFieldMapper,
  super.name,
  this.explodeIndex,
  this.height = '80%',
  this.width = '80%',
  this.pyramidMode = PyramidMode.linear,
  this.gapRatio = 0,
  super.emptyPointSettings,
  this.explodeOffset = '10%',
  this.explode = false,
  this.explodeGesture = ActivationMode.singleTap,
  this.borderColor = Colors.transparent,
  super.borderWidth,
  super.legendIconType,
  super.dataLabelSettings,
  super.animationDuration,
  super.animationDelay,
  super.opacity,
  super.selectionBehavior,
  super.initialSelectedDataIndexes,
}) : super(
        dataLabelMapper: textFieldMapper,
      );