Skip to main content

BarChartEvent

Event payload emitted when the user hovers or clicks a bar chart.

Inherits: Event

Properties

  • group_index - Bar's index or -1 if chart is hovered or clicked outside of any bar.
  • rod_index - Rod's index or -1 if chart is hovered or clicked outside of any bar.
  • stack_item_index - Stack item's index or -1 if chart is hovered or clicked outside of any bar.
  • type - The type of event that occurred on the chart.

Properties

group_indexclass-attributeinstance-attribute

group_index: Optional[int] = None

Bar's index or -1 if chart is hovered or clicked outside of any bar.

rod_indexclass-attributeinstance-attribute

rod_index: Optional[int] = None

Rod's index or -1 if chart is hovered or clicked outside of any bar.

stack_item_indexclass-attributeinstance-attribute

stack_item_index: Optional[int] = None

Stack item's index or -1 if chart is hovered or clicked outside of any bar.

typeinstance-attribute

type: ChartEventType

The type of event that occurred on the chart.