@esfaenza/es-charts 13.1.3 → 13.1.4

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.
@@ -127,6 +127,11 @@ export declare abstract class BaseChartComponent implements AfterViewInit, OnDes
127
127
  * Evento lanciato al termine del caricamento di una nuova pagina del grafico
128
128
  */
129
129
  onLoadEnd: EventEmitter<void>;
130
+ /**
131
+ * Evento lanciato al termine della creazione del grafico referenziando l'istanza nativa del grafico creato in modo da poter effettuare modifiche
132
+ * post inizializzazione lato applicativo
133
+ */
134
+ chartLoaded: EventEmitter<BaseChartComponent>;
130
135
  /**
131
136
  * Serve a decidere se sarà presente l'interfaccia di paginazione
132
137
  */
@@ -265,6 +270,10 @@ export declare abstract class BaseChartComponent implements AfterViewInit, OnDes
265
270
  * le differenze fra il grafico com'era prima e come deve diventare, in modo da non ricrearlo ma semplicemente modificare quello che già è disegnato
266
271
  */
267
272
  private reloadChart;
273
+ /**
274
+ * Permette di aggiungere un blocco di dati in maniera "live" ad un grafico
275
+ */
276
+ addData(chartData: any): void;
268
277
  /**
269
278
  * Funzione che si occupa di caricare i temi necessari per il grafico in oggetto. Prima applica il tema, poi, se serve, applica le animazioni
270
279
  */
@@ -278,5 +287,5 @@ export declare abstract class BaseChartComponent implements AfterViewInit, OnDes
278
287
  */
279
288
  browserOnly(f: () => void): void;
280
289
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseChartComponent, never>;
281
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseChartComponent, never, never, { "XTitle": "XTitle"; "YTitle": "YTitle"; "Settings": "Settings"; "Legend": "Legend"; "LegendPosition": "LegendPosition"; "Timeline": "Timeline"; "name": "name"; "Animations": "Animations"; "Theme": "Theme"; "Locale": "Locale"; "HideSeriesOnLabelClick": "HideSeriesOnLabelClick"; "MinGridDistance": "MinGridDistance"; "AdaptLabelSizeAndOrientation": "AdaptLabelSizeAndOrientation"; "LegendPadding": "LegendPadding"; "DataDtos": "DataDtos"; "DataDtoStartIndex": "DataDtoStartIndex"; "DataRetrieve": "DataRetrieve"; "BrowseDelayMs": "BrowseDelayMs"; }, { "onSelectionChanged": "onSelectionChanged"; "onSeriesClicked": "onSeriesClicked"; "onLoadStart": "onLoadStart"; "onLoadEnd": "onLoadEnd"; }, ["header_tr", "loading_template"]>;
290
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseChartComponent, never, never, { "XTitle": "XTitle"; "YTitle": "YTitle"; "Settings": "Settings"; "Legend": "Legend"; "LegendPosition": "LegendPosition"; "Timeline": "Timeline"; "name": "name"; "Animations": "Animations"; "Theme": "Theme"; "Locale": "Locale"; "HideSeriesOnLabelClick": "HideSeriesOnLabelClick"; "MinGridDistance": "MinGridDistance"; "AdaptLabelSizeAndOrientation": "AdaptLabelSizeAndOrientation"; "LegendPadding": "LegendPadding"; "DataDtos": "DataDtos"; "DataDtoStartIndex": "DataDtoStartIndex"; "DataRetrieve": "DataRetrieve"; "BrowseDelayMs": "BrowseDelayMs"; }, { "onSelectionChanged": "onSelectionChanged"; "onSeriesClicked": "onSeriesClicked"; "onLoadStart": "onLoadStart"; "onLoadEnd": "onLoadEnd"; "chartLoaded": "chartLoaded"; }, ["header_tr", "loading_template"]>;
282
291
  }
@@ -17,6 +17,8 @@ export declare class LineChartService implements IBaseService<am4charts.XYChart>
17
17
  /** @ignore */
18
18
  private OpacityOnSelected;
19
19
  /** @ignore */
20
+ private singleDataSet;
21
+ /** @ignore */
20
22
  constructor(Adapter: BaseAdapter, dateExts: DateService);
21
23
  /**
22
24
  * Metodo che data una coppia Dati - Impostazioni li utilizza per creare e visualizzare un LineChart
@@ -24,6 +26,8 @@ export declare class LineChartService implements IBaseService<am4charts.XYChart>
24
26
  graphicate(data: LineChartData | any, settings: LineChartSettings): IBaseService<am4charts.XYChart>;
25
27
  /** @ignore */
26
28
  refreshData(data: LineChartData | any): void;
29
+ /** Partendo da dati divisi per seriue genera un dataset unito con la data come chiave e i vari valori dopo */
30
+ private generateSingleDataset;
27
31
  /** @ignore */
28
32
  private emitSelectionChanged;
29
33
  /** @ignore */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esfaenza/es-charts",
3
- "version": "13.1.3",
3
+ "version": "13.1.4",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
package/public-api.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './lib/models/data/classes/base/KeyValue';
21
21
  export * from './lib/models/data/classes/base/KeyValueColor';
22
22
  export * from './lib/models/data/classes/base/LineSerie';
23
23
  export * from './lib/components/chart-pager/chart-pager.component';
24
+ export * from './lib/components/base/base-chart.component';
24
25
  export * from './lib/components/specializations/es-chart.component';
25
26
  export * from './lib/components/specializations/es-area-chart.component';
26
27
  export * from './lib/components/specializations/es-line-chart.component';