ChartSelectionProps

Defines the configuration options for customizing chart selection behavior

Props

The following table outlines the props for the ChartSelectionProps:

NameTypeDefaultDescription
allowMultiSelection
boolean
false

Enables selection of multiple data points, series, or clusters.

Note that the selectionMode must be set to Point, Series, or Cluster for multi-selection to be enabled.

mode
'None'

Specifies how data points or series can be selected or highlighted. Available options:

  • 'None': Disables selection.
  • 'Series': Selects the entire series.
  • 'Point': Selects individual data points.
  • 'Cluster': Selects a group of related data points.
pattern
None

Specifies the visual pattern applied to selected data points or series 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 chart is initially rendered.

Note that selectionMode or highlightMode must be set to Point, Series, or Cluster for this feature to work.