stream-charts
    Preparing search index...

    Holds the information to allow mapping axes names to the underlying axes objects. These objects hold the axis ID, its location on the chart (i.e. left, right, bottom, upper) and the underlying d3 selection objects for managing the axes. Axis objects that extend the BaseAxis class may have additional properties.

    Type Parameters

    • A extends BaseAxis

      The type of the axes (must extend BaseAxis)

    Index

    Properties

    axes: Map<string, A>

    Methods

    • Adds an axis to the current axis state and returns a new axis state. This is an internal state management function. This should generally not be used. Instead, use the UseAxesValues.addXAxis and UseAxesValues.addYAxis functions to add axes.

      Parameters

      • axis: A

        The axis to add

      • id: string

        The ID of the axis to add

      Returns AxesState<A>

      An updated axes state that has the new axis

      • UseAxesValues.addXAxis
      • UseAxesValues.addYAxis
    • Attempts to retrieve the x-axis for the specified ID

      Parameters

      • axisId: string

        The unique ID of the axis

      Returns Optional<A>

      The axis, or undefined if no axis with the specified ID is found