Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TooltipVertical

Implements

  • Tooltip

Index

Constructors

constructor

Properties

Private _isVisible

_isVisible: boolean = false

Private hasSummary

hasSummary: boolean

Private model

model: TooltipModelWithBB | undefined

Private options

options: TooltipOptions

Private pointsWithDataSets

pointsWithDataSets: PointWithDataSet[] | undefined

Private state

state: ChartState

Private tooltipInteraction

tooltipInteraction: TooltipInteraction

Accessors

ctx

ctx:

isVisible

isVisible:

Methods

Private computeLeftTopCorner

  • Logic: p - top dataset point, we try to put tooltip in order A->B->C A C p B

    Parameters

    Returns PointTuple

Private computeModel

  • Parameters

    • pointsWithDataSets: PointWithDataSet[]

    Returns TooltipModelWithBB

Private createBoxPath

  • Parameters

    Returns Path2D

draw

  • draw(): void
  • Returns void

Private drawBody

  • Parameters

    Returns void

Private drawBox

  • Parameters

    Returns void

Private drawHeader

  • Parameters

    Returns void

Private drawLine

  • drawLine(x: number, yFrom: number): void
  • Parameters

    • x: number
    • yFrom: number

    Returns void

Private drawPoint

  • drawPoint(ctx: CanvasRenderingContext2D, point: PointWithDataSet): void
  • Parameters

    • ctx: CanvasRenderingContext2D
    • point: PointWithDataSet

    Returns void

Private drawRow

  • drawRow(ctx: CanvasRenderingContext2D, model: TooltipModelWithBB, label: string, valueColor: string, yValue: number, sum: number): void
  • Parameters

    • ctx: CanvasRenderingContext2D
    • model: TooltipModelWithBB
    • label: string
    • valueColor: string
    • yValue: number
    • sum: number

    Returns void

Private findTopDataSetPointOnScreen

  • findTopDataSetPointOnScreen(pointsWithDataSets: PointWithDataSet[]): number
  • Parameters

    • pointsWithDataSets: PointWithDataSet[]

    Returns number

Private getMaxY

  • getMaxY(): number
  • Returns number

hide

  • hide(): void
  • Returns void

Private highlightBar

  • highlightBar(ctx: CanvasRenderingContext2D, point: PointWithDataSet, bottom: number): number
  • Parameters

    • ctx: CanvasRenderingContext2D
    • point: PointWithDataSet
    • bottom: number

    Returns number

Private highlightDataSets

  • highlightDataSets(pointWithDataSets: PointWithDataSet[]): void
  • Parameters

    • pointWithDataSets: PointWithDataSet[]

    Returns void

Private measureBody

  • Parameters

    • pointsWithDataSets: PointWithDataSet[]

    Returns TooltipBodyModel

Private measureHeader

  • measureHeader(pointsWithDataSets: PointWithDataSet[]): Dimensions
  • Parameters

    • pointsWithDataSets: PointWithDataSet[]

    Returns Dimensions

setDataAndShow

  • setDataAndShow(pointsWithName: PointWithDataSet[] | undefined): void
  • Parameters

    • pointsWithName: PointWithDataSet[] | undefined

    Returns void

Private updateHeight

  • Parameters

    Returns void

Private updatePosition

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