Class LineController

Controller class for bar and line charts.

Hierarchy

Constructors

Properties

requiredConfigWithValue: {} = {}

Type declaration

    axisController: XYHorVertAxisController
    svgChart: SvgChart

    Methods

    • Draws chart element for this serie and attached it to the serieGroup. Overrides base class method.

      Parameters

      • serie: ChartConfigSerie

        Serie object.

      • serieIndex: number

        Serie index.

      • serieGroup: SVGElement

        DOM group element for this serie.

      Returns void

    • Helper function to get a curved path from an array of points.

      Parameters

      Returns any[]

      Array of curved path coordinates.

    • Helper function to get a straight path for line charts.

      Parameters

      Returns any[]

      Array of path coordinates.

    • Returns HTML string to display when an item has received focus.

      Parameters

      • configSerie: ChartConfigSerie

        Config serie for which to display the value.

      • serieIndex: number

        Index of the serie.

      • dataIndex: number

        Index of the data.

      Returns string

      The HTML string to display.

    • Draws chart.

      Calls:

      Parameters

      • currentSerieGroupElement: SVGElement

        Group element where the chart can be appended to.

      Returns void

    • Do things at the end of the draw for this chart.

      Parameters

      • currentSerieGroupElement: SVGElement

        DOM group element.

      Returns void

    Generated using TypeDoc