Options
All
  • Public
  • Public/Protected
  • All
Menu

A base class for Tick Coordinate Providers, which convert arrays of major and minor ticks (data values) into pixel coordinates.

Hierarchy

Index

Properties

parentAxis

parentAxis: AxisCore

The parent AxisCore. This will be set once attachedToAxis is called

Methods

attachedToAxis

  • Called when the TickCoordinatesProvider is attached to an Axis

    Parameters

    • axis: AxisCore

      The Axis we are attached to.

    Returns void

detachedFromAxis

  • detachedFromAxis(): void
  • Called when the TickCoordinatesProvider is detached from an Axis

    Returns void

Abstract getTickCoordinates

  • getTickCoordinates(majorTicks: number[], minorTicks: number[]): { majorTickCoords: number[]; majorTickOverrides: number[]; minorTickCoords: number[]; minorTickOverRides: number[] }
  • Converts arrays of major and minor ticks (data values) into structure containing pixel coordinates

    Parameters

    • majorTicks: number[]
    • minorTicks: number[]

    Returns { majorTickCoords: number[]; majorTickOverrides: number[]; minorTickCoords: number[]; minorTickOverRides: number[] }

    • majorTickCoords: number[]
    • majorTickOverrides: number[]
    • minorTickCoords: number[]
    • minorTickOverRides: number[]

Generated using TypeDoc