UNPKG

@amcharts/amcharts5

Version:
24 lines 946 B
import { SerialChart } from "../../core/render/SerialChart"; import { PercentDefaultTheme } from "./PercentDefaultTheme"; /** * Base class for [[PieChart]]. * * Also used for percent-based series, like [[FunnelSeries]], [[PyramidSeries]], etc. * * @important */ export class PercentChart extends SerialChart { _afterNew() { this._defaultThemes.push(PercentDefaultTheme.new(this._root)); super._afterNew(); this.chartContainer.children.push(this.seriesContainer); this.seriesContainer.children.push(this.bulletsContainer); } _processSeries(series) { super._processSeries(series); this.seriesContainer.children.moveValue(this.bulletsContainer, this.seriesContainer.children.length - 1); } } PercentChart.className = "PercentChart"; PercentChart.classNames = SerialChart.classNames.concat([PercentChart.className]); //# sourceMappingURL=PercentChart.js.map