Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "components/Bisector/BisectorTooltip/index"

Component to render the cursor bisector tooltip for a graph

Index

Interfaces

Type aliases

Variables

Functions

Type aliases

BisectorTooltipProps

BisectorTooltipProps: SelfProps & Pick<Dimensions, "height" | "width"> & Pick<CommonProps, "data"> & Partial<Pick<CommonProps, "color" | "graphIndex" | "graphWidth">>

All BisectorTooltip props

Variables

Const TOOLTIP_X_OFFSET

TOOLTIP_X_OFFSET: 20 = 20

Const bisect

bisect: left = d3.bisector((coord: Coordinate) => coord.x).left

Functions

Const BisectorTooltip

  • BisectorTooltip(__namedParameters: { color: ScaleOrdinal<string, string>; data: LineProps[]; graphIndex: number; graphWidth: number; height: number; width: number; x: number; xOffset: number }): Element
  • BisectorTooltip Component

    Parameters

    • __namedParameters: { color: ScaleOrdinal<string, string>; data: LineProps[]; graphIndex: number; graphWidth: number; height: number; width: number; x: number; xOffset: number }
      • color: ScaleOrdinal<string, string>
      • data: LineProps[]
      • graphIndex: number
      • graphWidth: number
      • height: number
      • width: number
      • x: number
      • xOffset: number

    Returns Element

Generated using TypeDoc