Class DonutController

Class for displaying pie and donut charts.

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.

    • 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

    Generated using TypeDoc