stream-charts
    Preparing search index...

    Function addContinuousNumericXAxis

    • Adds a new x-axis to the SVG element at the specified location

      Parameters

      • chartId: number

        The ID of the chart

      • axisId: string

        The ID of the axis

      • svg: SvgSelection

        The SVG selection to which to add the axis

      • plotDimensions: Dimensions

        The dimensions of the plot

      • location: Bottom | Top

        The location of the axis

      • scaleGenerator: ScaleContinuousNumeric<number, number>

        The higher-order function that returns the axis d3 "scale" function

      • domain: [minValue: number, maxValue: number]

        The axis range (start, end)

      • axesLabelFont: AxesFont

        The font for the axis labels

      • margin: Margin

        The plot margins for the border of main SVG group

      • axisLabel: string

        The label for the axis

      • setAxisRangeFor: (axisId: string, timeRange: AxisInterval) => void

        A callback used to set the axis range

      Returns ContinuousNumericAxis

      A ContinuousNumericAxis based on the arguments to this function