Skip to main content

PieChartEvent

Event payload emitted when the user interacts with a pie chart section.

Inherits: Event

Properties

  • local_x - X coordinate of the local position where the event occurred.
  • local_y - Y coordinate of the local position where the event occurred.
  • section_index - Section's index or -1 if no section was hovered.
  • type - Type of the event.

Properties

local_xclass-attributeinstance-attribute

local_x: Optional[float] = None

X coordinate of the local position where the event occurred.

local_yclass-attributeinstance-attribute

local_y: Optional[float] = None

Y coordinate of the local position where the event occurred.

section_indexclass-attributeinstance-attribute

section_index: Optional[int] = None

Section's index or -1 if no section was hovered.

typeinstance-attribute

type: ChartEventType

Type of the event.