@esfaenza/es-charts 15.2.7 → 16.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{esm2020 → esm2022}/esfaenza-es-charts.mjs +4 -4
- package/{esm2020 → esm2022}/lib/adapters/BaseAdapter.mjs +50 -50
- package/{esm2020 → esm2022}/lib/adapters/IBaseAdapter.mjs +1 -1
- package/{esm2020 → esm2022}/lib/components/base/base-chart.component.mjs +350 -350
- package/{esm2020 → esm2022}/lib/components/chart-pager/chart-pager.component.mjs +89 -89
- package/{esm2020 → esm2022}/lib/components/specializations/es-area-chart.component.mjs +77 -77
- package/{esm2020 → esm2022}/lib/components/specializations/es-chart.component.mjs +122 -122
- package/{esm2020 → esm2022}/lib/components/specializations/es-line-chart.component.mjs +112 -112
- package/{esm2020 → esm2022}/lib/components/specializations/es-pie-chart.component.mjs +98 -98
- package/{esm2020 → esm2022}/lib/components/specializations/es-vertical-2d-chart.component.mjs +95 -95
- package/{esm2020 → esm2022}/lib/components/specializations/es-vertical-chart.component.mjs +92 -92
- package/{esm2020 → esm2022}/lib/components/specializations/es-vertical-stacked-chart.component.mjs +92 -92
- package/{esm2020 → esm2022}/lib/es-charts.module.mjs +67 -67
- package/{esm2020 → esm2022}/lib/models/EsChaartsModuleConfig.mjs +5 -5
- package/{esm2020 → esm2022}/lib/models/core/ChartDispatcher.mjs +91 -91
- package/{esm2020 → esm2022}/lib/models/core/ChartLoader.mjs +212 -212
- package/{esm2020 → esm2022}/lib/models/core/ChartThemes.mjs +60 -60
- package/{esm2020 → esm2022}/lib/models/data/AreaChartData.mjs +15 -15
- package/{esm2020 → esm2022}/lib/models/data/LineChartData.mjs +15 -15
- package/{esm2020 → esm2022}/lib/models/data/PagedChartData.mjs +19 -19
- package/{esm2020 → esm2022}/lib/models/data/PieChartData.mjs +13 -13
- package/{esm2020 → esm2022}/lib/models/data/Vertical2DChartData.mjs +15 -15
- package/{esm2020 → esm2022}/lib/models/data/VerticalChartData.mjs +13 -13
- package/{esm2020 → esm2022}/lib/models/data/VerticalStackedChartData.mjs +13 -13
- package/{esm2020 → esm2022}/lib/models/data/base/DateValue.mjs +10 -10
- package/{esm2020 → esm2022}/lib/models/data/base/KeyValue.mjs +10 -10
- package/{esm2020 → esm2022}/lib/models/data/base/KeyValueColor.mjs +12 -12
- package/{esm2020 → esm2022}/lib/models/data/base/Limit.mjs +15 -15
- package/{esm2020 → esm2022}/lib/models/data/base/LineSerie.mjs +27 -27
- package/{esm2020 → esm2022}/lib/models/settings/AreaChartSettings.mjs +10 -10
- package/{esm2020 → esm2022}/lib/models/settings/LineChartSettings.mjs +10 -10
- package/{esm2020 → esm2022}/lib/models/settings/PieChartSettings.mjs +6 -6
- package/{esm2020 → esm2022}/lib/models/settings/Vertical2DChartSettings.mjs +10 -10
- package/{esm2020 → esm2022}/lib/models/settings/VerticalChartSettings.mjs +10 -10
- package/{esm2020 → esm2022}/lib/models/settings/VerticalStackedChartSettings.mjs +10 -10
- package/{esm2020 → esm2022}/lib/models/settings/base/BaseInterval.mjs +5 -5
- package/{esm2020 → esm2022}/lib/models/settings/base/BaseSettings.mjs +5 -5
- package/{esm2020 → esm2022}/lib/models/settings/base/LegendPad.mjs +5 -5
- package/esm2022/lib/services/AreaChartService.mjs +157 -0
- package/esm2022/lib/services/LineChartService.mjs +392 -0
- package/{esm2020 → esm2022}/lib/services/PieChartService.mjs +113 -113
- package/{esm2020 → esm2022}/lib/services/Vertical2DChartService.mjs +162 -162
- package/{esm2020 → esm2022}/lib/services/VerticalChartService.mjs +113 -113
- package/{esm2020 → esm2022}/lib/services/VerticalStackedChartService.mjs +126 -126
- package/{esm2020 → esm2022}/lib/services/base/IBaseService.mjs +1 -1
- package/{esm2020 → esm2022}/lib/tokens.mjs +13 -13
- package/{esm2020 → esm2022}/public-api.mjs +38 -38
- package/{fesm2020 → fesm2022}/esfaenza-es-charts.mjs +2728 -2688
- package/fesm2022/esfaenza-es-charts.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/adapters/BaseAdapter.d.ts +40 -40
- package/lib/adapters/IBaseAdapter.d.ts +35 -35
- package/lib/components/base/base-chart.component.d.ts +304 -304
- package/lib/components/chart-pager/chart-pager.component.d.ts +70 -70
- package/lib/components/specializations/es-area-chart.component.d.ts +53 -53
- package/lib/components/specializations/es-chart.component.d.ts +71 -71
- package/lib/components/specializations/es-line-chart.component.d.ts +112 -112
- package/lib/components/specializations/es-pie-chart.component.d.ts +81 -81
- package/lib/components/specializations/es-vertical-2d-chart.component.d.ts +79 -79
- package/lib/components/specializations/es-vertical-chart.component.d.ts +74 -74
- package/lib/components/specializations/es-vertical-stacked-chart.component.d.ts +74 -74
- package/lib/es-charts.module.d.ts +18 -18
- package/lib/models/EsChaartsModuleConfig.d.ts +24 -24
- package/lib/models/core/ChartDispatcher.d.ts +46 -46
- package/lib/models/core/ChartLoader.d.ts +92 -92
- package/lib/models/core/ChartThemes.d.ts +23 -23
- package/lib/models/data/AreaChartData.d.ts +22 -22
- package/lib/models/data/LineChartData.d.ts +16 -16
- package/lib/models/data/PagedChartData.d.ts +23 -23
- package/lib/models/data/PieChartData.d.ts +13 -13
- package/lib/models/data/Vertical2DChartData.d.ts +27 -27
- package/lib/models/data/VerticalChartData.d.ts +13 -13
- package/lib/models/data/VerticalStackedChartData.d.ts +21 -21
- package/lib/models/data/base/DateValue.d.ts +9 -9
- package/lib/models/data/base/KeyValue.d.ts +9 -9
- package/lib/models/data/base/KeyValueColor.d.ts +11 -11
- package/lib/models/data/base/Limit.d.ts +14 -14
- package/lib/models/data/base/LineSerie.d.ts +28 -28
- package/lib/models/settings/AreaChartSettings.d.ts +10 -10
- package/lib/models/settings/LineChartSettings.d.ts +67 -67
- package/lib/models/settings/PieChartSettings.d.ts +34 -34
- package/lib/models/settings/Vertical2DChartSettings.d.ts +36 -36
- package/lib/models/settings/VerticalChartSettings.d.ts +31 -31
- package/lib/models/settings/VerticalStackedChartSettings.d.ts +31 -31
- package/lib/models/settings/base/BaseInterval.d.ts +13 -13
- package/lib/models/settings/base/BaseSettings.d.ts +67 -67
- package/lib/models/settings/base/LegendPad.d.ts +21 -21
- package/lib/services/AreaChartService.d.ts +32 -31
- package/lib/services/LineChartService.d.ts +48 -47
- package/lib/services/PieChartService.d.ts +27 -27
- package/lib/services/Vertical2DChartService.d.ts +39 -39
- package/lib/services/VerticalChartService.d.ts +33 -33
- package/lib/services/VerticalStackedChartService.d.ts +35 -35
- package/lib/services/base/IBaseService.d.ts +38 -38
- package/lib/tokens.d.ts +13 -13
- package/package.json +11 -17
- package/public-api.d.ts +35 -35
- package/esm2020/lib/services/AreaChartService.mjs +0 -137
- package/esm2020/lib/services/LineChartService.mjs +0 -372
- package/fesm2015/esfaenza-es-charts.mjs +0 -2829
- package/fesm2015/esfaenza-es-charts.mjs.map +0 -1
- package/fesm2020/esfaenza-es-charts.mjs.map +0 -1
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { LegendPad } from "../base/LegendPad";
|
|
2
|
-
/**
|
|
3
|
-
* Classe che racchiude le impostazioni base bene o male applicabili ad ogni Grafico
|
|
4
|
-
*/
|
|
5
|
-
export declare abstract class BaseSettings {
|
|
6
|
-
/**
|
|
7
|
-
* Utilizza o no la Timeline
|
|
8
|
-
*/
|
|
9
|
-
Timeline: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Visualizza o no la Legenda
|
|
12
|
-
*/
|
|
13
|
-
Legend: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Nome del grafico (identificativo univoco)
|
|
16
|
-
*/
|
|
17
|
-
Name: string;
|
|
18
|
-
/**
|
|
19
|
-
* Titolo dell'asse X
|
|
20
|
-
*/
|
|
21
|
-
XAxisTitle: string;
|
|
22
|
-
/**
|
|
23
|
-
* Titolo dell'asse Y
|
|
24
|
-
*/
|
|
25
|
-
YAxisTitle: string;
|
|
26
|
-
/**
|
|
27
|
-
* Dà evidenza, nell'asse X dei momenti in cui cambia il valore
|
|
28
|
-
*/
|
|
29
|
-
ShowTicks: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Indica se utilizzare il comportamento di default per i click delle serie sulla Legenda. Mettendo questa variabile a **false**
|
|
32
|
-
* e collegando l'output **onSeriesClicked** è possibile generare un evento ogni volta che l'utente fa click su una serie della Legenda
|
|
33
|
-
*/
|
|
34
|
-
HideSeriesOnLabelClick: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Minima distanza nella griglia fra i valori, modifica la quantità di step fra i valori dell'asse X e quindi la granularità dei dati.
|
|
37
|
-
*
|
|
38
|
-
* Più piccola è, più valori verranno inseriti nell'asse X
|
|
39
|
-
*/
|
|
40
|
-
MinGridDistance: number;
|
|
41
|
-
/**
|
|
42
|
-
* Indica la posizione della Legenda rispetto al grafico
|
|
43
|
-
*/
|
|
44
|
-
LegendPosition: "top" | "bottom" | "left" | "right";
|
|
45
|
-
/**
|
|
46
|
-
* Cerca di aggiustare i vari step dell'asse X ruotandoli e diminuendone le dimensioni abbastanza per mostrarne il più possibile
|
|
47
|
-
*/
|
|
48
|
-
AdaptLabelSizeAndOrientation: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Padding da applicare alla Legenda in caso si voglia spostare un po'
|
|
51
|
-
*/
|
|
52
|
-
LegendPadding: LegendPad;
|
|
53
|
-
/**
|
|
54
|
-
* Tema da utilizzare, valido solo per il grafico in questione. Gli altri grafici della pagina possono avere stili diversi.
|
|
55
|
-
*
|
|
56
|
-
* Essendo i temi caricati in maniera asincrona in base all'utilizzo utilizzarne tanti diversi in un'unica pagina potrebbe rallentare il primo caricamento
|
|
57
|
-
*/
|
|
58
|
-
Theme: 'spiritedaway' | 'moonrisekingdom' | 'frozen' | 'dark' | 'kelly' | 'material' | 'dataviz' | 'none';
|
|
59
|
-
/**
|
|
60
|
-
* Locale del singolo grafico
|
|
61
|
-
*/
|
|
62
|
-
Locale: string;
|
|
63
|
-
/**
|
|
64
|
-
* Utilizzo o meno delle animazioni. Senza animazioni il grafico è leggermente più performante, specialmente all'aumentare dei punti nella serie
|
|
65
|
-
*/
|
|
66
|
-
Animations: boolean;
|
|
67
|
-
}
|
|
1
|
+
import { LegendPad } from "../base/LegendPad";
|
|
2
|
+
/**
|
|
3
|
+
* Classe che racchiude le impostazioni base bene o male applicabili ad ogni Grafico
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class BaseSettings {
|
|
6
|
+
/**
|
|
7
|
+
* Utilizza o no la Timeline
|
|
8
|
+
*/
|
|
9
|
+
Timeline: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Visualizza o no la Legenda
|
|
12
|
+
*/
|
|
13
|
+
Legend: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Nome del grafico (identificativo univoco)
|
|
16
|
+
*/
|
|
17
|
+
Name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Titolo dell'asse X
|
|
20
|
+
*/
|
|
21
|
+
XAxisTitle: string;
|
|
22
|
+
/**
|
|
23
|
+
* Titolo dell'asse Y
|
|
24
|
+
*/
|
|
25
|
+
YAxisTitle: string;
|
|
26
|
+
/**
|
|
27
|
+
* Dà evidenza, nell'asse X dei momenti in cui cambia il valore
|
|
28
|
+
*/
|
|
29
|
+
ShowTicks: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Indica se utilizzare il comportamento di default per i click delle serie sulla Legenda. Mettendo questa variabile a **false**
|
|
32
|
+
* e collegando l'output **onSeriesClicked** è possibile generare un evento ogni volta che l'utente fa click su una serie della Legenda
|
|
33
|
+
*/
|
|
34
|
+
HideSeriesOnLabelClick: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Minima distanza nella griglia fra i valori, modifica la quantità di step fra i valori dell'asse X e quindi la granularità dei dati.
|
|
37
|
+
*
|
|
38
|
+
* Più piccola è, più valori verranno inseriti nell'asse X
|
|
39
|
+
*/
|
|
40
|
+
MinGridDistance: number;
|
|
41
|
+
/**
|
|
42
|
+
* Indica la posizione della Legenda rispetto al grafico
|
|
43
|
+
*/
|
|
44
|
+
LegendPosition: "top" | "bottom" | "left" | "right";
|
|
45
|
+
/**
|
|
46
|
+
* Cerca di aggiustare i vari step dell'asse X ruotandoli e diminuendone le dimensioni abbastanza per mostrarne il più possibile
|
|
47
|
+
*/
|
|
48
|
+
AdaptLabelSizeAndOrientation: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Padding da applicare alla Legenda in caso si voglia spostare un po'
|
|
51
|
+
*/
|
|
52
|
+
LegendPadding: LegendPad;
|
|
53
|
+
/**
|
|
54
|
+
* Tema da utilizzare, valido solo per il grafico in questione. Gli altri grafici della pagina possono avere stili diversi.
|
|
55
|
+
*
|
|
56
|
+
* Essendo i temi caricati in maniera asincrona in base all'utilizzo utilizzarne tanti diversi in un'unica pagina potrebbe rallentare il primo caricamento
|
|
57
|
+
*/
|
|
58
|
+
Theme: 'spiritedaway' | 'moonrisekingdom' | 'frozen' | 'dark' | 'kelly' | 'material' | 'dataviz' | 'none';
|
|
59
|
+
/**
|
|
60
|
+
* Locale del singolo grafico
|
|
61
|
+
*/
|
|
62
|
+
Locale: string;
|
|
63
|
+
/**
|
|
64
|
+
* Utilizzo o meno delle animazioni. Senza animazioni il grafico è leggermente più performante, specialmente all'aumentare dei punti nella serie
|
|
65
|
+
*/
|
|
66
|
+
Animations: boolean;
|
|
67
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Classe che identifica le informazioni di Padding per la Legenda
|
|
3
|
-
*/
|
|
4
|
-
export declare class LegendPad {
|
|
5
|
-
/**
|
|
6
|
-
* Padding in alto
|
|
7
|
-
*/
|
|
8
|
-
top: number;
|
|
9
|
-
/**
|
|
10
|
-
* Padding in basso
|
|
11
|
-
*/
|
|
12
|
-
bottom: number;
|
|
13
|
-
/**
|
|
14
|
-
* Padding a sinistra
|
|
15
|
-
*/
|
|
16
|
-
left: number;
|
|
17
|
-
/**
|
|
18
|
-
* Padding a destra
|
|
19
|
-
*/
|
|
20
|
-
right: number;
|
|
21
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Classe che identifica le informazioni di Padding per la Legenda
|
|
3
|
+
*/
|
|
4
|
+
export declare class LegendPad {
|
|
5
|
+
/**
|
|
6
|
+
* Padding in alto
|
|
7
|
+
*/
|
|
8
|
+
top: number;
|
|
9
|
+
/**
|
|
10
|
+
* Padding in basso
|
|
11
|
+
*/
|
|
12
|
+
bottom: number;
|
|
13
|
+
/**
|
|
14
|
+
* Padding a sinistra
|
|
15
|
+
*/
|
|
16
|
+
left: number;
|
|
17
|
+
/**
|
|
18
|
+
* Padding a destra
|
|
19
|
+
*/
|
|
20
|
+
right: number;
|
|
21
|
+
}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { IBaseService } from './base/IBaseService';
|
|
2
|
-
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
3
|
-
import { AreaChartData } from '../models/data/AreaChartData';
|
|
4
|
-
import { AreaChartSettings } from '../models/settings/AreaChartSettings';
|
|
5
|
-
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
6
|
-
/**
|
|
7
|
-
* Classe il cui unico scopo è gestire il setup e rendering di un AreaChart
|
|
8
|
-
*/
|
|
9
|
-
export declare class AreaChartService implements IBaseService<am4charts.XYChart> {
|
|
10
|
-
Adapter: BaseAdapter;
|
|
11
|
-
/** @ignore */
|
|
12
|
-
ChartInstance: am4charts.XYChart;
|
|
13
|
-
/** @ignore */
|
|
14
|
-
constructor(Adapter: BaseAdapter);
|
|
15
|
-
/**
|
|
16
|
-
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un AreaChart
|
|
17
|
-
*/
|
|
18
|
-
graphicate(data: AreaChartData | any, settings: AreaChartSettings): IBaseService<am4charts.XYChart>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { IBaseService } from './base/IBaseService';
|
|
2
|
+
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
3
|
+
import { AreaChartData } from '../models/data/AreaChartData';
|
|
4
|
+
import { AreaChartSettings } from '../models/settings/AreaChartSettings';
|
|
5
|
+
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
6
|
+
/**
|
|
7
|
+
* Classe il cui unico scopo è gestire il setup e rendering di un AreaChart
|
|
8
|
+
*/
|
|
9
|
+
export declare class AreaChartService implements IBaseService<am4charts.XYChart> {
|
|
10
|
+
Adapter: BaseAdapter;
|
|
11
|
+
/** @ignore */
|
|
12
|
+
ChartInstance: am4charts.XYChart;
|
|
13
|
+
/** @ignore */
|
|
14
|
+
constructor(Adapter: BaseAdapter);
|
|
15
|
+
/**
|
|
16
|
+
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un AreaChart
|
|
17
|
+
*/
|
|
18
|
+
graphicate(data: AreaChartData | any, settings: AreaChartSettings): IBaseService<am4charts.XYChart>;
|
|
19
|
+
fixTimeUnit(tu: any): "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year";
|
|
20
|
+
/** @ignore */
|
|
21
|
+
setSelection(from: Date, to: Date): void;
|
|
22
|
+
/** @ignore */
|
|
23
|
+
refreshData(data: AreaChartData | any): void;
|
|
24
|
+
/** @ignore */
|
|
25
|
+
private emitSelectionChanged;
|
|
26
|
+
/** @ignore */
|
|
27
|
+
private createSeries;
|
|
28
|
+
/** @ignore */
|
|
29
|
+
private executionTimers;
|
|
30
|
+
/** @ignore */
|
|
31
|
+
private throttla;
|
|
32
|
+
}
|
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { DateService } from "@esfaenza/extensions";
|
|
2
|
-
import { IBaseService } from './base/IBaseService';
|
|
3
|
-
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
4
|
-
import { LineChartData } from '../models/data/LineChartData';
|
|
5
|
-
import { LineChartSettings } from '../models/settings/LineChartSettings';
|
|
6
|
-
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
7
|
-
/**
|
|
8
|
-
* Classe il cui unico scopo è gestire il setup e rendering di un LineChart
|
|
9
|
-
*/
|
|
10
|
-
export declare class LineChartService implements IBaseService<am4charts.XYChart> {
|
|
11
|
-
Adapter: BaseAdapter;
|
|
12
|
-
private dateExts;
|
|
13
|
-
/** @ignore */
|
|
14
|
-
ChartInstance: am4charts.XYChart;
|
|
15
|
-
/** @ignore */
|
|
16
|
-
private DataGroupBucketSize;
|
|
17
|
-
/** @ignore */
|
|
18
|
-
private OpacityOnSelected;
|
|
19
|
-
/** @ignore */
|
|
20
|
-
private OpacityOnFill;
|
|
21
|
-
/** @ignore */
|
|
22
|
-
private singleDataSet;
|
|
23
|
-
/** @ignore */
|
|
24
|
-
constructor(Adapter: BaseAdapter, dateExts: DateService);
|
|
25
|
-
/** Rifeirmento interno all'asse delle Date per semplicità */
|
|
26
|
-
private dateAxis;
|
|
27
|
-
/**
|
|
28
|
-
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un LineChart
|
|
29
|
-
*/
|
|
30
|
-
graphicate(data: LineChartData | any, settings: LineChartSettings): IBaseService<am4charts.XYChart>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
import { DateService } from "@esfaenza/extensions";
|
|
2
|
+
import { IBaseService } from './base/IBaseService';
|
|
3
|
+
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
4
|
+
import { LineChartData } from '../models/data/LineChartData';
|
|
5
|
+
import { LineChartSettings } from '../models/settings/LineChartSettings';
|
|
6
|
+
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
7
|
+
/**
|
|
8
|
+
* Classe il cui unico scopo è gestire il setup e rendering di un LineChart
|
|
9
|
+
*/
|
|
10
|
+
export declare class LineChartService implements IBaseService<am4charts.XYChart> {
|
|
11
|
+
Adapter: BaseAdapter;
|
|
12
|
+
private dateExts;
|
|
13
|
+
/** @ignore */
|
|
14
|
+
ChartInstance: am4charts.XYChart;
|
|
15
|
+
/** @ignore */
|
|
16
|
+
private DataGroupBucketSize;
|
|
17
|
+
/** @ignore */
|
|
18
|
+
private OpacityOnSelected;
|
|
19
|
+
/** @ignore */
|
|
20
|
+
private OpacityOnFill;
|
|
21
|
+
/** @ignore */
|
|
22
|
+
private singleDataSet;
|
|
23
|
+
/** @ignore */
|
|
24
|
+
constructor(Adapter: BaseAdapter, dateExts: DateService);
|
|
25
|
+
/** Rifeirmento interno all'asse delle Date per semplicità */
|
|
26
|
+
private dateAxis;
|
|
27
|
+
/**
|
|
28
|
+
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un LineChart
|
|
29
|
+
*/
|
|
30
|
+
graphicate(data: LineChartData | any, settings: LineChartSettings): IBaseService<am4charts.XYChart>;
|
|
31
|
+
fixTimeUnit(tu: any): "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year";
|
|
32
|
+
/** @ignore */
|
|
33
|
+
setSelection(from: Date, to: Date): void;
|
|
34
|
+
/** @ignore */
|
|
35
|
+
refreshData(data: LineChartData | any): void;
|
|
36
|
+
/** Partendo da dati divisi per seriue genera un dataset unito con la data come chiave e i vari valori dopo */
|
|
37
|
+
private generateSingleDataset;
|
|
38
|
+
/** @ignore */
|
|
39
|
+
private emitSelectionChanged;
|
|
40
|
+
/** @ignore */
|
|
41
|
+
private processOver;
|
|
42
|
+
/** @ignore */
|
|
43
|
+
private processOut;
|
|
44
|
+
/** @ignore */
|
|
45
|
+
private executionTimers;
|
|
46
|
+
/** @ignore */
|
|
47
|
+
private throttla;
|
|
48
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { IBaseService } from './base/IBaseService';
|
|
2
|
-
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
3
|
-
import { PieChartData } from '../models/data/PieChartData';
|
|
4
|
-
import { PieChartSettings } from '../models/settings/PieChartSettings';
|
|
5
|
-
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
6
|
-
/**
|
|
7
|
-
* Classe il cui unico scopo è gestire il setup e rendering di un PieChart
|
|
8
|
-
*/
|
|
9
|
-
export declare class PieChartService implements IBaseService<am4charts.PieChart> {
|
|
10
|
-
Adapter: BaseAdapter;
|
|
11
|
-
/** @ignore */
|
|
12
|
-
ChartInstance: am4charts.PieChart3D | am4charts.PieChart;
|
|
13
|
-
/** @ignore */
|
|
14
|
-
private ViewAbsoluteValues;
|
|
15
|
-
/** @ignore */
|
|
16
|
-
constructor(Adapter: BaseAdapter);
|
|
17
|
-
/**
|
|
18
|
-
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un PieChart
|
|
19
|
-
*/
|
|
20
|
-
graphicate(data: PieChartData | any, settings: PieChartSettings): IBaseService<am4charts.PieChart>;
|
|
21
|
-
/** @ignore */
|
|
22
|
-
setSelection(from: Date, to: Date): void;
|
|
23
|
-
/** @ignore */
|
|
24
|
-
refreshData(data: PieChartData | any): void;
|
|
25
|
-
/** @ignore */
|
|
26
|
-
private hideZeroes;
|
|
27
|
-
}
|
|
1
|
+
import { IBaseService } from './base/IBaseService';
|
|
2
|
+
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
3
|
+
import { PieChartData } from '../models/data/PieChartData';
|
|
4
|
+
import { PieChartSettings } from '../models/settings/PieChartSettings';
|
|
5
|
+
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
6
|
+
/**
|
|
7
|
+
* Classe il cui unico scopo è gestire il setup e rendering di un PieChart
|
|
8
|
+
*/
|
|
9
|
+
export declare class PieChartService implements IBaseService<am4charts.PieChart> {
|
|
10
|
+
Adapter: BaseAdapter;
|
|
11
|
+
/** @ignore */
|
|
12
|
+
ChartInstance: am4charts.PieChart3D | am4charts.PieChart;
|
|
13
|
+
/** @ignore */
|
|
14
|
+
private ViewAbsoluteValues;
|
|
15
|
+
/** @ignore */
|
|
16
|
+
constructor(Adapter: BaseAdapter);
|
|
17
|
+
/**
|
|
18
|
+
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un PieChart
|
|
19
|
+
*/
|
|
20
|
+
graphicate(data: PieChartData | any, settings: PieChartSettings): IBaseService<am4charts.PieChart>;
|
|
21
|
+
/** @ignore */
|
|
22
|
+
setSelection(from: Date, to: Date): void;
|
|
23
|
+
/** @ignore */
|
|
24
|
+
refreshData(data: PieChartData | any): void;
|
|
25
|
+
/** @ignore */
|
|
26
|
+
private hideZeroes;
|
|
27
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { IBaseService } from './base/IBaseService';
|
|
2
|
-
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
3
|
-
import { Vertical2DChartData } from '../models/data/Vertical2DChartData';
|
|
4
|
-
import { Vertical2DChartSettings } from '../models/settings/Vertical2DChartSettings';
|
|
5
|
-
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
6
|
-
/**
|
|
7
|
-
* Classe il cui unico scopo è gestire il setup e rendering di un Vertical2DChart
|
|
8
|
-
*/
|
|
9
|
-
export declare class Vertical2DChartService implements IBaseService<am4charts.XYChart> {
|
|
10
|
-
Adapter: BaseAdapter;
|
|
11
|
-
/** @ignore */
|
|
12
|
-
ChartInstance: am4charts.XYChart;
|
|
13
|
-
/** @ignore */
|
|
14
|
-
private DefaultGroupPaddingPercentage;
|
|
15
|
-
/** @ignore */
|
|
16
|
-
private dangerZone;
|
|
17
|
-
/** @ignore */
|
|
18
|
-
private LabelWidth;
|
|
19
|
-
/** @ignore */
|
|
20
|
-
private LabelRightWhenCompressed;
|
|
21
|
-
/** @ignore */
|
|
22
|
-
private LabelTopWhenCompressed;
|
|
23
|
-
/** @ignore */
|
|
24
|
-
private DefaultColumnWidthPercentage;
|
|
25
|
-
/** @ignore */
|
|
26
|
-
constructor(Adapter: BaseAdapter);
|
|
27
|
-
/**
|
|
28
|
-
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un Vertical2DChart
|
|
29
|
-
*/
|
|
30
|
-
graphicate(data: Vertical2DChartData | any, settings: Vertical2DChartSettings): IBaseService<am4charts.XYChart>;
|
|
31
|
-
/** @ignore */
|
|
32
|
-
setSelection(from: Date, to: Date): void;
|
|
33
|
-
/** @ignore */
|
|
34
|
-
refreshData(data: Vertical2DChartData | any): void;
|
|
35
|
-
/** @ignore */
|
|
36
|
-
private createSeries;
|
|
37
|
-
/** @ignore */
|
|
38
|
-
private arrangeColumns;
|
|
39
|
-
}
|
|
1
|
+
import { IBaseService } from './base/IBaseService';
|
|
2
|
+
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
3
|
+
import { Vertical2DChartData } from '../models/data/Vertical2DChartData';
|
|
4
|
+
import { Vertical2DChartSettings } from '../models/settings/Vertical2DChartSettings';
|
|
5
|
+
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
6
|
+
/**
|
|
7
|
+
* Classe il cui unico scopo è gestire il setup e rendering di un Vertical2DChart
|
|
8
|
+
*/
|
|
9
|
+
export declare class Vertical2DChartService implements IBaseService<am4charts.XYChart> {
|
|
10
|
+
Adapter: BaseAdapter;
|
|
11
|
+
/** @ignore */
|
|
12
|
+
ChartInstance: am4charts.XYChart;
|
|
13
|
+
/** @ignore */
|
|
14
|
+
private DefaultGroupPaddingPercentage;
|
|
15
|
+
/** @ignore */
|
|
16
|
+
private dangerZone;
|
|
17
|
+
/** @ignore */
|
|
18
|
+
private LabelWidth;
|
|
19
|
+
/** @ignore */
|
|
20
|
+
private LabelRightWhenCompressed;
|
|
21
|
+
/** @ignore */
|
|
22
|
+
private LabelTopWhenCompressed;
|
|
23
|
+
/** @ignore */
|
|
24
|
+
private DefaultColumnWidthPercentage;
|
|
25
|
+
/** @ignore */
|
|
26
|
+
constructor(Adapter: BaseAdapter);
|
|
27
|
+
/**
|
|
28
|
+
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un Vertical2DChart
|
|
29
|
+
*/
|
|
30
|
+
graphicate(data: Vertical2DChartData | any, settings: Vertical2DChartSettings): IBaseService<am4charts.XYChart>;
|
|
31
|
+
/** @ignore */
|
|
32
|
+
setSelection(from: Date, to: Date): void;
|
|
33
|
+
/** @ignore */
|
|
34
|
+
refreshData(data: Vertical2DChartData | any): void;
|
|
35
|
+
/** @ignore */
|
|
36
|
+
private createSeries;
|
|
37
|
+
/** @ignore */
|
|
38
|
+
private arrangeColumns;
|
|
39
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { IBaseService } from './base/IBaseService';
|
|
2
|
-
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
3
|
-
import { VerticalChartData } from '../models/data/VerticalChartData';
|
|
4
|
-
import { VerticalChartSettings } from '../models/settings/VerticalChartSettings';
|
|
5
|
-
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
6
|
-
/**
|
|
7
|
-
* Classe il cui unico scopo è gestire il setup e rendering di un VerticalChart
|
|
8
|
-
*/
|
|
9
|
-
export declare class VerticalChartService implements IBaseService<am4charts.XYChart> {
|
|
10
|
-
Adapter: BaseAdapter;
|
|
11
|
-
/** @ignore */
|
|
12
|
-
ChartInstance: am4charts.XYChart;
|
|
13
|
-
/** @ignore */
|
|
14
|
-
private dangerZone;
|
|
15
|
-
/** @ignore */
|
|
16
|
-
private LabelWidth;
|
|
17
|
-
/** @ignore */
|
|
18
|
-
private LabelRightWhenCompressed;
|
|
19
|
-
/** @ignore */
|
|
20
|
-
private LabelTopWhenCompressed;
|
|
21
|
-
/** @ignore */
|
|
22
|
-
private DefaultColumnWidthPercentage;
|
|
23
|
-
/** @ignore */
|
|
24
|
-
constructor(Adapter: BaseAdapter);
|
|
25
|
-
/**
|
|
26
|
-
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un VerticalChart
|
|
27
|
-
*/
|
|
28
|
-
graphicate(data: VerticalChartData | any, settings: VerticalChartSettings): IBaseService<am4charts.XYChart>;
|
|
29
|
-
/** @ignore */
|
|
30
|
-
setSelection(from: Date, to: Date): void;
|
|
31
|
-
/** @ignore */
|
|
32
|
-
refreshData(data: VerticalChartData | any): void;
|
|
33
|
-
}
|
|
1
|
+
import { IBaseService } from './base/IBaseService';
|
|
2
|
+
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
3
|
+
import { VerticalChartData } from '../models/data/VerticalChartData';
|
|
4
|
+
import { VerticalChartSettings } from '../models/settings/VerticalChartSettings';
|
|
5
|
+
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
6
|
+
/**
|
|
7
|
+
* Classe il cui unico scopo è gestire il setup e rendering di un VerticalChart
|
|
8
|
+
*/
|
|
9
|
+
export declare class VerticalChartService implements IBaseService<am4charts.XYChart> {
|
|
10
|
+
Adapter: BaseAdapter;
|
|
11
|
+
/** @ignore */
|
|
12
|
+
ChartInstance: am4charts.XYChart;
|
|
13
|
+
/** @ignore */
|
|
14
|
+
private dangerZone;
|
|
15
|
+
/** @ignore */
|
|
16
|
+
private LabelWidth;
|
|
17
|
+
/** @ignore */
|
|
18
|
+
private LabelRightWhenCompressed;
|
|
19
|
+
/** @ignore */
|
|
20
|
+
private LabelTopWhenCompressed;
|
|
21
|
+
/** @ignore */
|
|
22
|
+
private DefaultColumnWidthPercentage;
|
|
23
|
+
/** @ignore */
|
|
24
|
+
constructor(Adapter: BaseAdapter);
|
|
25
|
+
/**
|
|
26
|
+
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un VerticalChart
|
|
27
|
+
*/
|
|
28
|
+
graphicate(data: VerticalChartData | any, settings: VerticalChartSettings): IBaseService<am4charts.XYChart>;
|
|
29
|
+
/** @ignore */
|
|
30
|
+
setSelection(from: Date, to: Date): void;
|
|
31
|
+
/** @ignore */
|
|
32
|
+
refreshData(data: VerticalChartData | any): void;
|
|
33
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { IBaseService } from './base/IBaseService';
|
|
2
|
-
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
3
|
-
import { VerticalStackedChartData } from '../models/data/VerticalStackedChartData';
|
|
4
|
-
import { VerticalStackedChartSettings } from '../models/settings/VerticalStackedChartSettings';
|
|
5
|
-
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
6
|
-
/**
|
|
7
|
-
* Classe il cui unico scopo è gestire il setup e rendering di un VerticalStackedChart
|
|
8
|
-
*/
|
|
9
|
-
export declare class VerticalStackedChartService implements IBaseService<am4charts.XYChart> {
|
|
10
|
-
Adapter: BaseAdapter;
|
|
11
|
-
/** @ignore */
|
|
12
|
-
ChartInstance: am4charts.XYChart;
|
|
13
|
-
/** @ignore */
|
|
14
|
-
private dangerZone;
|
|
15
|
-
/** @ignore */
|
|
16
|
-
private LabelWidth;
|
|
17
|
-
/** @ignore */
|
|
18
|
-
private LabelRightWhenCompressed;
|
|
19
|
-
/** @ignore */
|
|
20
|
-
private LabelTopWhenCompressed;
|
|
21
|
-
/** @ignore */
|
|
22
|
-
private DefaultColumnWidthPercentage;
|
|
23
|
-
/** @ignore */
|
|
24
|
-
constructor(Adapter: BaseAdapter);
|
|
25
|
-
/**
|
|
26
|
-
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un VerticalStackedChart
|
|
27
|
-
*/
|
|
28
|
-
graphicate(data: VerticalStackedChartData | any, settings: VerticalStackedChartSettings): IBaseService<am4charts.XYChart>;
|
|
29
|
-
/** @ignore */
|
|
30
|
-
setSelection(from: Date, to: Date): void;
|
|
31
|
-
/** @ignore */
|
|
32
|
-
refreshData(data: VerticalStackedChartData | any): void;
|
|
33
|
-
/** @ignore */
|
|
34
|
-
private createSeriesStacked;
|
|
35
|
-
}
|
|
1
|
+
import { IBaseService } from './base/IBaseService';
|
|
2
|
+
import { BaseAdapter } from '../adapters/BaseAdapter';
|
|
3
|
+
import { VerticalStackedChartData } from '../models/data/VerticalStackedChartData';
|
|
4
|
+
import { VerticalStackedChartSettings } from '../models/settings/VerticalStackedChartSettings';
|
|
5
|
+
import * as am4charts from "@amcharts/amcharts4/charts";
|
|
6
|
+
/**
|
|
7
|
+
* Classe il cui unico scopo è gestire il setup e rendering di un VerticalStackedChart
|
|
8
|
+
*/
|
|
9
|
+
export declare class VerticalStackedChartService implements IBaseService<am4charts.XYChart> {
|
|
10
|
+
Adapter: BaseAdapter;
|
|
11
|
+
/** @ignore */
|
|
12
|
+
ChartInstance: am4charts.XYChart;
|
|
13
|
+
/** @ignore */
|
|
14
|
+
private dangerZone;
|
|
15
|
+
/** @ignore */
|
|
16
|
+
private LabelWidth;
|
|
17
|
+
/** @ignore */
|
|
18
|
+
private LabelRightWhenCompressed;
|
|
19
|
+
/** @ignore */
|
|
20
|
+
private LabelTopWhenCompressed;
|
|
21
|
+
/** @ignore */
|
|
22
|
+
private DefaultColumnWidthPercentage;
|
|
23
|
+
/** @ignore */
|
|
24
|
+
constructor(Adapter: BaseAdapter);
|
|
25
|
+
/**
|
|
26
|
+
* Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un VerticalStackedChart
|
|
27
|
+
*/
|
|
28
|
+
graphicate(data: VerticalStackedChartData | any, settings: VerticalStackedChartSettings): IBaseService<am4charts.XYChart>;
|
|
29
|
+
/** @ignore */
|
|
30
|
+
setSelection(from: Date, to: Date): void;
|
|
31
|
+
/** @ignore */
|
|
32
|
+
refreshData(data: VerticalStackedChartData | any): void;
|
|
33
|
+
/** @ignore */
|
|
34
|
+
private createSeriesStacked;
|
|
35
|
+
}
|