@esfaenza/es-charts 11.2.23 → 11.2.26
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 +42 -12
- 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/esfaenza-es-charts.metadata.json +1 -1
- package/esm2015/lib/components/base/base-chart.component.js +10 -1
- package/esm2015/lib/models/data/base/Limit.js +6 -6
- package/esm2015/lib/services/AreaChartService.js +4 -1
- package/esm2015/lib/services/LineChartService.js +14 -8
- package/esm2015/lib/services/PieChartService.js +4 -1
- package/esm2015/lib/services/Vertical2DChartService.js +4 -1
- package/esm2015/lib/services/VerticalChartService.js +4 -1
- package/esm2015/lib/services/VerticalStackedChartService.js +4 -1
- package/esm2015/lib/services/base/IBaseService.js +1 -1
- package/fesm2015/esfaenza-es-charts.js +42 -12
- package/fesm2015/esfaenza-es-charts.js.map +1 -1
- package/lib/components/base/base-chart.component.d.ts +7 -0
- package/lib/models/data/base/Limit.d.ts +5 -5
- package/lib/services/AreaChartService.d.ts +2 -0
- package/lib/services/LineChartService.d.ts +4 -0
- package/lib/services/PieChartService.d.ts +2 -0
- package/lib/services/Vertical2DChartService.d.ts +2 -0
- package/lib/services/VerticalChartService.d.ts +2 -0
- package/lib/services/VerticalStackedChartService.d.ts +2 -0
- package/lib/services/base/IBaseService.d.ts +7 -0
- package/package.json +1 -1
|
@@ -600,13 +600,13 @@
|
|
|
600
600
|
*/
|
|
601
601
|
var Limit = /** @class */ (function () {
|
|
602
602
|
/** @ignore */
|
|
603
|
-
function Limit(upper,
|
|
603
|
+
function Limit(upper, upperlabel, uppercolor, lower, lowerlabel, lowercolor) {
|
|
604
604
|
this.upper = upper;
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
605
|
+
this.upperlabel = upperlabel;
|
|
606
|
+
this.uppercolor = uppercolor;
|
|
607
607
|
this.lower = lower;
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
608
|
+
this.lowerlabel = lowerlabel;
|
|
609
|
+
this.lowercolor = lowercolor;
|
|
610
610
|
}
|
|
611
611
|
return Limit;
|
|
612
612
|
}());
|
|
@@ -1482,6 +1482,15 @@
|
|
|
1482
1482
|
if (this.logs)
|
|
1483
1483
|
console.log("@esfaenza/es-charts: " + log);
|
|
1484
1484
|
};
|
|
1485
|
+
/**
|
|
1486
|
+
* Imposta lo zoom dal **from** al **to**
|
|
1487
|
+
*
|
|
1488
|
+
* @param {Date} from Inizio dello zoom
|
|
1489
|
+
* @param {Date} to Fine dello zoom
|
|
1490
|
+
*/
|
|
1491
|
+
BaseChartComponent.prototype.setSelection = function (from, to) {
|
|
1492
|
+
this.ChartService.setSelection(from, to);
|
|
1493
|
+
};
|
|
1485
1494
|
/**
|
|
1486
1495
|
* @ignore
|
|
1487
1496
|
*/
|
|
@@ -1589,11 +1598,11 @@
|
|
|
1589
1598
|
var range = yAxis.axisRanges.create();
|
|
1590
1599
|
range.value = dataConverted.limit.upper;
|
|
1591
1600
|
range.label.inside = true;
|
|
1592
|
-
range.label.text = dataConverted.limit.
|
|
1601
|
+
range.label.text = dataConverted.limit.upperlabel;
|
|
1593
1602
|
range.label.fill = range.grid.stroke;
|
|
1594
1603
|
range.label.verticalCenter = "bottom";
|
|
1595
|
-
range.label.stroke = am4core__namespace.color(dataConverted.limit.
|
|
1596
|
-
range.grid.stroke = am4core__namespace.color(dataConverted.limit.
|
|
1604
|
+
range.label.stroke = am4core__namespace.color(dataConverted.limit.uppercolor || "#F92200");
|
|
1605
|
+
range.grid.stroke = am4core__namespace.color(dataConverted.limit.uppercolor || "#F92200");
|
|
1597
1606
|
range.grid.strokeWidth = 2;
|
|
1598
1607
|
range.grid.strokeOpacity = 1;
|
|
1599
1608
|
}
|
|
@@ -1601,16 +1610,18 @@
|
|
|
1601
1610
|
var range = yAxis.axisRanges.create();
|
|
1602
1611
|
range.value = dataConverted.limit.lower;
|
|
1603
1612
|
range.label.inside = true;
|
|
1604
|
-
range.label.text = dataConverted.limit.
|
|
1613
|
+
range.label.text = dataConverted.limit.lowerlabel;
|
|
1605
1614
|
range.label.fill = range.grid.stroke;
|
|
1606
1615
|
range.label.verticalCenter = "bottom";
|
|
1607
|
-
range.label.stroke = am4core__namespace.color(dataConverted.limit.
|
|
1608
|
-
range.grid.stroke = am4core__namespace.color(dataConverted.limit.
|
|
1616
|
+
range.label.stroke = am4core__namespace.color(dataConverted.limit.lowercolor || "#F92200");
|
|
1617
|
+
range.grid.stroke = am4core__namespace.color(dataConverted.limit.lowercolor || "#F92200");
|
|
1609
1618
|
range.grid.strokeWidth = 2;
|
|
1610
1619
|
range.grid.strokeOpacity = 1;
|
|
1611
1620
|
}
|
|
1612
1621
|
}
|
|
1613
|
-
|
|
1622
|
+
this.dateAxis = ChartInstanceCasted.xAxes.push(new am4charts__namespace.DateAxis());
|
|
1623
|
+
// Per comatibilità col codice scritto quando non era a livello globale, mi scoccia sostituire
|
|
1624
|
+
var dateAxis = this.dateAxis;
|
|
1614
1625
|
if (settings.XAxisTitle) {
|
|
1615
1626
|
dateAxis.title.text = settings.XAxisTitle;
|
|
1616
1627
|
dateAxis.title.fontWeight = "bold";
|
|
@@ -1781,6 +1792,10 @@
|
|
|
1781
1792
|
return this;
|
|
1782
1793
|
};
|
|
1783
1794
|
/** @ignore */
|
|
1795
|
+
LineChartService.prototype.setSelection = function (from, to) {
|
|
1796
|
+
this.dateAxis.zoomToDates(from, to, true, true);
|
|
1797
|
+
};
|
|
1798
|
+
/** @ignore */
|
|
1784
1799
|
LineChartService.prototype.refreshData = function (data) {
|
|
1785
1800
|
var dataConverted = this.Adapter ? this.Adapter.adaptDataForLineChart(data) : data;
|
|
1786
1801
|
if (this.singleDataSet) {
|
|
@@ -1975,6 +1990,9 @@
|
|
|
1975
1990
|
return this;
|
|
1976
1991
|
};
|
|
1977
1992
|
/** @ignore */
|
|
1993
|
+
PieChartService.prototype.setSelection = function (from, to) {
|
|
1994
|
+
};
|
|
1995
|
+
/** @ignore */
|
|
1978
1996
|
PieChartService.prototype.refreshData = function (data) {
|
|
1979
1997
|
//TODO:IMPL
|
|
1980
1998
|
};
|
|
@@ -2087,6 +2105,9 @@
|
|
|
2087
2105
|
return this;
|
|
2088
2106
|
};
|
|
2089
2107
|
/** @ignore */
|
|
2108
|
+
VerticalChartService.prototype.setSelection = function (from, to) {
|
|
2109
|
+
};
|
|
2110
|
+
/** @ignore */
|
|
2090
2111
|
VerticalChartService.prototype.refreshData = function (data) {
|
|
2091
2112
|
//TODO:IMPL
|
|
2092
2113
|
};
|
|
@@ -2202,6 +2223,9 @@
|
|
|
2202
2223
|
return this;
|
|
2203
2224
|
};
|
|
2204
2225
|
/** @ignore */
|
|
2226
|
+
Vertical2DChartService.prototype.setSelection = function (from, to) {
|
|
2227
|
+
};
|
|
2228
|
+
/** @ignore */
|
|
2205
2229
|
Vertical2DChartService.prototype.refreshData = function (data) {
|
|
2206
2230
|
//TODO:IMPL
|
|
2207
2231
|
};
|
|
@@ -2362,6 +2386,9 @@
|
|
|
2362
2386
|
return this;
|
|
2363
2387
|
};
|
|
2364
2388
|
/** @ignore */
|
|
2389
|
+
VerticalStackedChartService.prototype.setSelection = function (from, to) {
|
|
2390
|
+
};
|
|
2391
|
+
/** @ignore */
|
|
2365
2392
|
VerticalStackedChartService.prototype.refreshData = function (data) {
|
|
2366
2393
|
//TODO:IMPL
|
|
2367
2394
|
};
|
|
@@ -2477,6 +2504,9 @@
|
|
|
2477
2504
|
return this;
|
|
2478
2505
|
};
|
|
2479
2506
|
/** @ignore */
|
|
2507
|
+
AreaChartService.prototype.setSelection = function (from, to) {
|
|
2508
|
+
};
|
|
2509
|
+
/** @ignore */
|
|
2480
2510
|
AreaChartService.prototype.refreshData = function (data) {
|
|
2481
2511
|
//TODO:IMPL
|
|
2482
2512
|
};
|