Options
All
  • Public
  • Public/Protected
  • All
Menu

Module trackerUtils

Index

Variables

defaultTrackerLabelFont

defaultTrackerLabelFont: TrackerLabelFont = ...

defaultTrackerStyle

defaultTrackerStyle: TrackerStyle = ...

Functions

removeTrackerControl

  • Removes the tracker control from the chart

    Parameters

    • svg: SvgSelection

      The svg selection holding the tracker contol

    Returns void

trackerControlInstance

  • Creates or returns the existing SVG elements for displaying a tracker line

    Parameters

    • chartId: number

      The ID of the chart

    • container: SVGSVGElement

      The SVG container

    • svg: SvgSelection

      The SVG selection

    • plotDimensions: Dimensions

      The dimensions of the plot

    • margin: Margin

      The margins around the plot

    • style: TrackerStyle

      The tracker style

    • labelFont: TrackerLabelFont

      The font used for the axis labels

    • label: Map<ContinuousNumericAxis, (x: number) => string>

      A function that returns the tracker label string for a given x-value

    • labelStyle: TrackerLabelLocation

      The location style for the tracker (i.e. on the axes, next to the mouse, none shown)

    • onTrackerUpdate: (update: TrackerAxisUpdate) => void

      A callback function the accepts the current tracker's axis information

    Returns TrackerSelection

    The tracker selection

Generated using TypeDoc