@esfaenza/es-charts 11.2.33 → 11.2.34

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.
@@ -135,7 +135,7 @@
135
135
  /**
136
136
  * Costruttore
137
137
  *
138
- * @param {{ name: string; values: KeyValue[]; }[]} groups Gruppi di valori raggruppati per nome
138
+ * @param {{ name: string; values: KeyValue[];, uom: string }[]} groups Gruppi di valori raggruppati per nome
139
139
  * @param {{ color: string }[]} colorinfos Lista dei colori da utilizzare. Vanno a sovrascrivere quelli di default di amcharts
140
140
  */
141
141
  function Vertical2DChartData(groups, colorinfos) {
@@ -169,7 +169,7 @@
169
169
  /**
170
170
  * Costruttore
171
171
  *
172
- * @param {{ name: string; values: KeyValue[]; }[]} groups Gruppi di valori raggruppati per nome
172
+ * @param {{ name: string; values: KeyValue[], uom: string }[]} groups Gruppi di valori raggruppati per nome
173
173
  */
174
174
  function VerticalStackedChartData(groups) {
175
175
  if (groups === void 0) { groups = []; }
@@ -1708,7 +1708,7 @@
1708
1708
  var series = (settings === null || settings === void 0 ? void 0 : settings.Step) ? new am4charts__namespace.StepLineSeries() : new am4charts__namespace.LineSeries();
1709
1709
  series.dataFields.valueY = "v" + (_this.singleDataSet ? index : "");
1710
1710
  series.dataFields.dateX = "d";
1711
- series.dataFields.measureUnit = s.uom;
1711
+ series.measureUnit = s.uom;
1712
1712
  series.name = s.name;
1713
1713
  series.strokeWidth = (_b = settings === null || settings === void 0 ? void 0 : settings.StrokeSize) !== null && _b !== void 0 ? _b : 1;
1714
1714
  series.connect = !gapsAllowed;
@@ -1751,7 +1751,7 @@
1751
1751
  series.adapter.add("tooltipText", function () {
1752
1752
  var text = "[bold]{dateX.formatDate()}[/]\n";
1753
1753
  _this.ChartInstance.series.each(function (item) {
1754
- var uom = " [font-style: italic]" + series.dataFields.measureUnit || "" + "[/]";
1754
+ var uom = " [font-style: italic]" + series.measureUnit || "" + "[/]";
1755
1755
  text += "[" + item.stroke.hex + "]●[/] " + (item.name ? (item.name + ": ") : "") + "[bold]{" + item.dataFields.valueY + "}[/]" + uom + "\n";
1756
1756
  });
1757
1757
  return text;