@esfaenza/es-charts 11.2.30 → 11.2.32
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/bundles/esfaenza-es-charts.umd.js +5 -5
- package/bundles/esfaenza-es-charts.umd.js.map +1 -1
- package/bundles/esfaenza-es-charts.umd.min.js +1 -1
- package/bundles/esfaenza-es-charts.umd.min.js.map +1 -1
- package/esm2015/lib/models/data/Vertical2DChartData.js +4 -4
- package/esm2015/lib/services/Vertical2DChartService.js +3 -3
- package/fesm2015/esfaenza-es-charts.js +5 -5
- package/fesm2015/esfaenza-es-charts.js.map +1 -1
- package/lib/models/data/Vertical2DChartData.d.ts +3 -3
- package/package.json +4 -4
|
@@ -136,12 +136,12 @@
|
|
|
136
136
|
* Costruttore
|
|
137
137
|
*
|
|
138
138
|
* @param {{ name: string; values: KeyValue[]; }[]} groups Gruppi di valori raggruppati per nome
|
|
139
|
-
* @param {{ color: string }[]}
|
|
139
|
+
* @param {{ color: string }[]} colorinfos Lista dei colori da utilizzare. Vanno a sovrascrivere quelli di default di amcharts
|
|
140
140
|
*/
|
|
141
|
-
function Vertical2DChartData(groups,
|
|
141
|
+
function Vertical2DChartData(groups, colorinfos) {
|
|
142
142
|
if (groups === void 0) { groups = []; }
|
|
143
143
|
this.groups = groups;
|
|
144
|
-
this.
|
|
144
|
+
this.colorinfos = colorinfos;
|
|
145
145
|
}
|
|
146
146
|
return Vertical2DChartData;
|
|
147
147
|
}());
|
|
@@ -2240,8 +2240,8 @@
|
|
|
2240
2240
|
dataConverted.push(obj);
|
|
2241
2241
|
}
|
|
2242
2242
|
ChartInstanceCasted.data = dataConverted;
|
|
2243
|
-
if (dataPreConverted.
|
|
2244
|
-
ChartInstanceCasted.colors.list = dataPreConverted.
|
|
2243
|
+
if (dataPreConverted.colorinfos)
|
|
2244
|
+
ChartInstanceCasted.colors.list = dataPreConverted.colorinfos.map(function (c) { return am4core__namespace.color(c.color); });
|
|
2245
2245
|
//Prendo la prima categoria e mi baso sulle proprietà per dfeinire le serie
|
|
2246
2246
|
for (var prop in dataConverted[0])
|
|
2247
2247
|
if (prop !== "key")
|