Container for shapes of spider axes and drawing logic.

Hierarchy

  • SpiderAxis

Properties

axisScale: LinearScale1D
scale: LinearScaleXY
tag: string

Methods

  • Permanently destroy the component.

    To fully allow Garbage-Collection to free the resources used by the component, make sure to remove any references to the component and its children in application code.

    let chart = ...Spider()
    let axis = chart.addAxis(category)
    axis.dispose()

    Returns

    Object itself for fluent interface

    Returns void

  • Format a value along axis to string.

    Returns

    Value formated to string

    Parameters

    • value: number

      Value along axis

    Returns string

  • Get the currently applied Spider Axis interval.

    Returns

    Object containing the current start and end of axis.

    Returns {
        end: number;
        start: number;
    }

    • end: number
    • start: number
  • Update axis label style and return its computed size. Used for computation of chart margins before drawing.

    Returns Point

  • Get the axis tag.

    Returns

    String tag

    Returns string

  • Set strategy for formatting scale labels.

     axis.setScaleLabelFormatter((value) => `${value} km`)
    

    Returns

    Object itself

    Parameters

    Returns SpiderAxis