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.

61 lines (60 loc) 1.68 kB
import { Root } from "@amcharts/amcharts5"; import { PieChart } from "@amcharts/amcharts5/percent"; import { XYChart } from "@amcharts/amcharts5/xy"; import { DateTime } from "luxon"; export declare const DEFAULT_DATE_FORMAT = "yyyy-MM-ddTHH:mm:ssZ"; export interface Am5XyContainer { root: Root; chart: XYChart; } export interface Am5PieContainer { root: Root; chart: PieChart; } export declare class Am5RootConfig { legendWithoutValueLabels?: boolean; tooltipContainerBounds?: { top: number; right: number; bottom: number; left: number; }; withLegend?: boolean; constructor(config: Am5RootConfig); } export declare class Am5AxisConfig { title?: string; withGrid?: boolean; withLabels?: boolean; withTooltip?: boolean; xOrY: 'x' | 'y'; constructor(type: 'date' | 'category' | 'value', config: Am5AxisConfig); } export declare class Am5PieSeriesConfig { name?: string; tooltipText?: string; xValue: string; yValue: string; withTooltip?: boolean; constructor(config: Am5PieSeriesConfig); } export declare class Am5SeriesConfig extends Am5PieSeriesConfig { color?: string; dateFormat?: string; stacked?: boolean; strokeWidth?: number; type: 'line' | 'bar' | 'stepline'; yOpenValue?: string; constructor(config: Am5SeriesConfig); } export declare class Am5DateRangeConfig { beginDt: DateTime; endDt: DateTime; clearRanges?: boolean; strokeColor?: string; strokeDasharray?: number | number[]; strokeWidth?: number; fillColor?: string; fillOpacity?: number; constructor(config: Am5DateRangeConfig); }