@esfaenza/es-charts 11.2.2 → 11.2.6

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.
@@ -668,7 +668,7 @@
668
668
  /**
669
669
  * Token che identifica l'utilizzo o meno del sistema di Log per l'intera libreria
670
670
  */
671
- var ESC_LOGS = new core.InjectionToken('ESC_LOG');
671
+ var ESC_LOGS = new core.InjectionToken('ESC_LOGS');
672
672
 
673
673
  /**
674
674
  * Classe che si occupa del dispatch delle operazioni di rendering dei grafici utilizzando una coda per permettere ad ogni grafico di avere temi e localizzazione custom
@@ -1918,6 +1918,17 @@
1918
1918
  }
1919
1919
  series.slices.template.propertyFields.fill = "c";
1920
1920
  this.ChartInstance.data = dataConverted.values;
1921
+ if (!settings.LabelsVisible) {
1922
+ series.labels.template.disabled = true;
1923
+ series.ticks.template.disabled = true;
1924
+ }
1925
+ else if (settings.LabelsWrap || settings.LabelsTruncate) {
1926
+ series.labels.template.maxWidth = settings.LabelsWidth || 100;
1927
+ if (settings.LabelsWrap)
1928
+ series.labels.template.wrap = true;
1929
+ else if (settings.LabelsTruncate)
1930
+ series.labels.template.truncate = true;
1931
+ }
1921
1932
  if (settings.Legend) {
1922
1933
  var legend = new am4charts__namespace.Legend();
1923
1934
  this.ChartInstance.legend = legend;
@@ -2639,7 +2650,7 @@
2639
2650
  * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
2640
2651
  */
2641
2652
  EsPieChartComponent.prototype.getSpecificPropertiesToCheck = function () {
2642
- return ["Data", "DataArray", "HideZeroes", "Mode3D"];
2653
+ return ["Data", "DataArray", "HideZeroes", "Mode3D", "LabelsWrap", "LabelsTruncate", "LabelsWidth", "LabelsVisible"];
2643
2654
  };
2644
2655
  /**
2645
2656
  * Ottiene i Settings (Ereditati dalla classe base, quindi del tipo generico **BaseSettings**) castati al tipo specifico per questo grafico
@@ -2659,6 +2670,10 @@
2659
2670
  settingsCasted.HideZeroes = settingsCasted.HideZeroes != null ? settingsCasted.HideZeroes : this.HideZeroes;
2660
2671
  settingsCasted.Mode3D = settingsCasted.Mode3D != null ? settingsCasted.Mode3D : this.Mode3D;
2661
2672
  settingsCasted.DonutRadiusPercentage = settingsCasted.DonutRadiusPercentage != null ? settingsCasted.DonutRadiusPercentage : this.DonutRadiusPercentage;
2673
+ settingsCasted.LabelsWrap = settingsCasted.LabelsWrap != null ? settingsCasted.LabelsWrap : this.LabelsWrap;
2674
+ settingsCasted.LabelsTruncate = settingsCasted.LabelsTruncate != null ? settingsCasted.LabelsTruncate : this.LabelsTruncate;
2675
+ settingsCasted.LabelsWidth = settingsCasted.LabelsWidth != null ? settingsCasted.LabelsWidth : this.LabelsWidth;
2676
+ settingsCasted.LabelsVisible = settingsCasted.LabelsVisible != null ? settingsCasted.LabelsVisible : this.LabelsVisible;
2662
2677
  };
2663
2678
  /**
2664
2679
  * Effettua il rendering di questo grafico in base ai Settings
@@ -2696,7 +2711,11 @@
2696
2711
  DataArray: [{ type: core.Input }],
2697
2712
  HideZeroes: [{ type: core.Input }],
2698
2713
  Mode3D: [{ type: core.Input }],
2699
- DonutRadiusPercentage: [{ type: core.Input }]
2714
+ DonutRadiusPercentage: [{ type: core.Input }],
2715
+ LabelsWrap: [{ type: core.Input }],
2716
+ LabelsTruncate: [{ type: core.Input }],
2717
+ LabelsWidth: [{ type: core.Input }],
2718
+ LabelsVisible: [{ type: core.Input }]
2700
2719
  };
2701
2720
 
2702
2721
  /**
@@ -3069,6 +3088,7 @@
3069
3088
  return {
3070
3089
  ngModule: EsChartsModule,
3071
3090
  providers: [
3091
+ { provide: ChartLoader },
3072
3092
  { provide: ESC_LOCALE, useValue: (config === null || config === void 0 ? void 0 : config.locale) || 'it-IT' },
3073
3093
  { provide: ESC_ANIMATIONS, useValue: (config === null || config === void 0 ? void 0 : config.animations) == null ? true : config === null || config === void 0 ? void 0 : config.animations },
3074
3094
  { provide: ESC_THEME, useValue: (config === null || config === void 0 ? void 0 : config.theme) || 'spiritedaway' },
@@ -3083,7 +3103,7 @@
3083
3103
  { type: core.NgModule, args: [{
3084
3104
  imports: [common.CommonModule],
3085
3105
  declarations: __spread(COMPONENTS),
3086
- providers: [ChartLoader, ChartDispatcher],
3106
+ providers: [ChartDispatcher],
3087
3107
  exports: __spread(COMPONENTS)
3088
3108
  },] }
3089
3109
  ];