Skip to main content

LineChartEventSpot

Identifies a concrete line/point pair involved in a chart interaction event.

Properties

  • bar_index - The line's index or -1 if no line was hovered.
  • spot_index - The line's point index or -1 if no point was hovered.

Methods

  • copy - Returns a copy of this object with the specified properties overridden.

Properties

bar_indexinstance-attribute

bar_index: int

The line's index or -1 if no line was hovered.

spot_indexinstance-attribute

spot_index: int

The line's point index or -1 if no point was hovered.

Methods

copy

copy(
    bar_index: int | None = None,
    spot_index: int | None = None,
) -> LineChartEventSpot

Returns a copy of this object with the specified properties overridden.