UNPKG

@engie-group/ngx-gem-spaas

Version:

This library contains services, components, images and styles to provide a unified look and way-of-working throughout GEM SPaaS.

26 lines (25 loc) 1.97 kB
import * as am4charts from '@amcharts/amcharts4/charts'; import { PieChart } from '@amcharts/amcharts4/charts'; import { OnDestroy } from '@angular/core'; import { ThemeService } from "@engie-group/ngx-gem-spaas"; import * as i0 from "@angular/core"; export declare class AmchartsService implements OnDestroy { private themeService; private theme; private onDestroy$; constructor(themeService: ThemeService); ngOnDestroy(): void; private onNewTheme; createChartXY(chartDiv: string, withLegend?: boolean): am4charts.XYChart; createChartPie(chartDiv: string, innerRadius?: number, startAngle?: number, endAngle?: number): am4charts.PieChart; destroyChart(chart: am4charts.XYChart | am4charts.PieChart | undefined): void; addCategoryAxis(chart: am4charts.XYChart, xOrY: 'x' | 'y', category: string, withTooltip: boolean, withGrid: boolean, withLabels: boolean): am4charts.CategoryAxis; addDateAxis(chart: am4charts.XYChart, xOrY: 'x' | 'y', date: string, withTooltip?: boolean, withGrid?: boolean, withLabels?: boolean): am4charts.DateAxis; addValueAxis(chart: am4charts.XYChart, xOrY: 'x' | 'y', title?: string, withTooltip?: boolean, withGrid?: boolean, withLabels?: boolean): am4charts.ValueAxis; private setAxisTooltip; private setGenericAxisProps; addSeriesXY(chart: am4charts.XYChart, type: 'line' | 'bar' | 'stepline', dataType: 'category' | 'date' | 'value', name: string, valueX: string, valueY: string, openValueY: string, stacked?: boolean, color?: string, defToolTipColor?: boolean, tooltipText?: string, strokeWidth?: number): am4charts.LineSeries | am4charts.ColumnSeries | am4charts.StepLineSeries; addSeriesPie(chart: PieChart, cat: string, value: string, colorAttr?: string, color?: string, withLabels?: boolean, tooltipText?: string): am4charts.PieSeries; static ɵfac: i0.ɵɵFactoryDeclaration<AmchartsService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<AmchartsService>; }