Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TooltipInteraction

Implements

Index

Constructors

constructor

Properties

Private chart

chart: Chart

eventByName

eventByName: DomEventByName = mouseEventByName

Private lastXPos

lastXPos: number | undefined

Private onMouseMove

onMouseMove: function = throttle(event => {const normalized = normalizeEvent(event, this.state.chartRect);const [x] = mouseEventToData(normalized, this.state);if (!this.state.dataBounds.containsPointHorizontal(x)) {return;}// x = floorToPrecision(x, this.state.initialBounds.deltaX);if (x === this.lastXPos) {return;}this.lastXPos = x;const pointsWithDataSet = this.getDataByX(x);this.tooltip.setDataAndShow(pointsWithDataSet);}, MOUSE_MOVE_THROTTLE)

Type declaration

    • (event: Event): void
    • Parameters

      • event: Event

      Returns void

Private overlay

overlay: HTMLCanvasElement

Private state

state: ChartState

Private tooltip

tooltip: Tooltip

Methods

addListeners

Private getDataByX

  • getDataByX(x: number): PointWithDataSet[]
  • Parameters

    • x: number

    Returns PointWithDataSet[]

Private onMouseLeave

  • onMouseLeave(): void
  • Returns void

onPointerDown

  • onPointerDown(event: Event): void

removeListeners

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc