Class XYHorVertAxisController

Hierarchy

  • XYHorVertAxisController

Constructors

Properties

#onXAxisLabelGroupClickScoped: ScopedEventCallback
#onXAxisLabelGroupKeypressScoped: ScopedEventCallback
#xAxisGroupElement: SVGElement
#xAxisLabelsGroupElement: SVGElement
svgChart: SvgChart
valueHeight: number
columnWidth: number
selectedColumnIndex: number
#xAxisGridColumnsSelectableGroupElement: SVGElement

Accessors

Methods

  • Add X axis grid lines and labels.

    Parameters

    • columnWidth: number

      Width of each column.

    Returns void

  • Draws an X axis line.

    Parameters

    • parent: SVGElement

      Parent element where to attach the line to.

    • x: number

      X position.

    Returns void

  • When a label on the x axis receives a click when focussed.

    Parameters

    • e: Event

      Event object.

    Returns void

  • Display the selected column indicator and fires the onXAxisLabelGroupSelect callback (if defined).

    Parameters

    • label: SVGElement

      Node (x axis label) that is selected.

    Returns void

  • When a X axis label receives a ENTER key event.

    Parameters

    • e: KeyboardEvent

      Keyboard event.

    Returns void

Generated using TypeDoc