PieChartSelectionProps

Defines configuration options for customizing pie chart selection behavior.

Props

The following table outlines the props for the PieChartSelectionProps:

NameTypeDefaultDescription
allowMultiSelection
boolean
false

Enables selection of multiple data points.

Note: The mode property must be set to Point for multi-selection to work.

mode
None

Specifies how data slices can be selected. Available options:

  • 'None': Disables selection.
  • 'Point': Allows selection of individual slices.
pattern
None

Specifies the visual pattern applied to selected data points The available options are:

  • 'None': No selection pattern is applied.
  • 'Chessboard': Applies a chessboard pattern as the selection effect.
  • 'Dots': Applies a dot pattern as the selection effect.
  • 'DiagonalForward': Applies a forward diagonal line pattern as the selection effect.
  • 'Crosshatch': Applies a crosshatch pattern as the selection effect.
  • 'Pacman': Applies a Pacman pattern as the selection effect.
  • 'DiagonalBackward': Applies a backward diagonal line pattern as the selection effect.
  • 'Grid': Applies a grid pattern as the selection effect.
  • 'Turquoise': Applies a turquoise pattern as the selection effect.
  • 'Star': Applies a star pattern as the selection effect.
  • 'Triangle': Applies a triangle pattern as the selection effect.
  • 'Circle': Applies a circle pattern as the selection effect.
  • 'Tile': Applies a tile pattern as the selection effect.
  • 'HorizontalDash': Applies a horizontal dash pattern as the selection effect.
  • 'VerticalDash': Applies a vertical dash pattern as the selection effect.
  • 'Rectangle': Applies a rectangle pattern as the selection effect.
  • 'Box': Applies a box pattern as the selection effect.
  • 'HorizontalStripe': Applies a horizontal stripe pattern as the selection effect.
  • 'Bubble': Applies a bubble pattern as the selection effect.
selectedDataIndexes
[ ]

Defines the indexes of points to be selected when the pie chart is initially rendered.

Note: The mode property must be set to Point for this feature to work.