Class Controller

Abstract Controller class. Reponsible for drawing charts for specific chart types.

Hierarchy

Constructors

Properties

requiredConfigWithValue: {} = {}

Type declaration

    svgChart: SvgChart

    Methods

    • 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 start of the draw for this chart.

      Parameters

      • currentSerieGroupElement: SVGElement

        DOM group element.

      Returns void

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

      Parameters

      • currentSerieGroupElement: SVGElement

        DOM group element.

      Returns void

    • Draws chart element for this serie and attached it to the serieGroup.

      Parameters

      • serie: ChartConfigSerie

        Serie object.

      • serieIndex: number

        Serie index.

      • serieGroup: SVGElement

        DOM group element for this serie.

      Returns void

    • Execute config things before global config things are done.

      Returns void

    • Execute config things after global config things are done.

      Returns void

    • Execute serie config things before global config serie things are done.

      Parameters

      Returns void

    Generated using TypeDoc