@vaadin/charts 24.0.0-alpha6 → 24.0.0-alpha8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/charts",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-alpha8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/component-base": "24.0.0-
|
|
40
|
-
"@vaadin/vaadin-lumo-styles": "24.0.0-
|
|
41
|
-
"@vaadin/vaadin-material-styles": "24.0.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "24.0.0-
|
|
39
|
+
"@vaadin/component-base": "24.0.0-alpha8",
|
|
40
|
+
"@vaadin/vaadin-lumo-styles": "24.0.0-alpha8",
|
|
41
|
+
"@vaadin/vaadin-material-styles": "24.0.0-alpha8",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "24.0.0-alpha8",
|
|
43
43
|
"highcharts": "9.2.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"web-types.json",
|
|
53
53
|
"web-types.lit.json"
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "476752249bb12295c500980d98a3256ad3b22b73"
|
|
56
56
|
}
|
package/src/vaadin-chart.d.ts
CHANGED
package/src/vaadin-chart.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2000 -
|
|
3
|
+
* Copyright (c) 2000 - 2023 Vaadin Ltd.
|
|
4
4
|
*
|
|
5
5
|
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
6
|
*
|
|
@@ -549,12 +549,10 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
549
549
|
deepMerge(options, this.additionalOptions);
|
|
550
550
|
|
|
551
551
|
if (this.type) {
|
|
552
|
-
options.chart = options.chart || {};
|
|
553
552
|
options.chart.type = this.type;
|
|
554
553
|
}
|
|
555
554
|
|
|
556
555
|
if (this.polar) {
|
|
557
|
-
options.chart = options.chart || {};
|
|
558
556
|
options.chart.polar = true;
|
|
559
557
|
}
|
|
560
558
|
|
|
@@ -579,7 +577,6 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
579
577
|
}
|
|
580
578
|
|
|
581
579
|
if (this.categories) {
|
|
582
|
-
options.xAxis = options.xAxis || {};
|
|
583
580
|
if (Array.isArray(options.xAxis)) {
|
|
584
581
|
// Set categories on first X axis
|
|
585
582
|
options.xAxis[0].categories = this.categories;
|
|
@@ -589,7 +586,6 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
589
586
|
}
|
|
590
587
|
|
|
591
588
|
if (isFinite(this.categoryMin)) {
|
|
592
|
-
options.xAxis = options.xAxis || {};
|
|
593
589
|
if (Array.isArray(options.xAxis)) {
|
|
594
590
|
// Set category-min on first X axis
|
|
595
591
|
options.xAxis[0].min = this.categoryMin;
|
|
@@ -599,7 +595,6 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
599
595
|
}
|
|
600
596
|
|
|
601
597
|
if (isFinite(this.categoryMax)) {
|
|
602
|
-
options.xAxis = options.xAxis || {};
|
|
603
598
|
if (Array.isArray(options.xAxis)) {
|
|
604
599
|
// Set category-max on first x axis
|
|
605
600
|
options.xAxis[0].max = this.categoryMax;
|
|
@@ -615,13 +610,13 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
615
610
|
}
|
|
616
611
|
|
|
617
612
|
if (this.emptyText) {
|
|
618
|
-
|
|
613
|
+
if (!options.lang) {
|
|
614
|
+
options.lang = {};
|
|
615
|
+
}
|
|
619
616
|
options.lang.noData = this.emptyText;
|
|
620
617
|
}
|
|
621
618
|
|
|
622
619
|
if (this.categoryPosition) {
|
|
623
|
-
options.chart = options.chart || {};
|
|
624
|
-
|
|
625
620
|
options.chart.inverted = this.__shouldInvert();
|
|
626
621
|
|
|
627
622
|
if (Array.isArray(options.xAxis)) {
|
|
@@ -634,14 +629,16 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
634
629
|
}
|
|
635
630
|
|
|
636
631
|
if (this.stacking) {
|
|
637
|
-
|
|
638
|
-
|
|
632
|
+
if (!options.plotOptions) {
|
|
633
|
+
options.plotOptions = {};
|
|
634
|
+
}
|
|
635
|
+
if (!options.plotOptions.series) {
|
|
636
|
+
options.plotOptions.series = {};
|
|
637
|
+
}
|
|
639
638
|
options.plotOptions.series.stacking = this.stacking;
|
|
640
639
|
}
|
|
641
640
|
|
|
642
641
|
if (this.chart3d) {
|
|
643
|
-
options.chart = options.chart || {};
|
|
644
|
-
|
|
645
642
|
options.chart.options3d = { ...this._baseChart3d, ...options.chart.options3d };
|
|
646
643
|
}
|
|
647
644
|
|
|
@@ -1321,7 +1318,7 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
1321
1318
|
}
|
|
1322
1319
|
|
|
1323
1320
|
// Strip off host selectors that target individual instances
|
|
1324
|
-
effectiveCss = effectiveCss.replace(/:host\(.+?\)/
|
|
1321
|
+
effectiveCss = effectiveCss.replace(/:host\(.+?\)/gu, (match) => {
|
|
1325
1322
|
const selector = match.substr(6, match.length - 7);
|
|
1326
1323
|
return this.matches(selector) ? '' : match;
|
|
1327
1324
|
});
|
|
@@ -1372,7 +1369,9 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
1372
1369
|
|
|
1373
1370
|
path = path.split('.');
|
|
1374
1371
|
return path.reduce((obj, key) => {
|
|
1375
|
-
|
|
1372
|
+
if (!obj[key]) {
|
|
1373
|
+
obj[key] = {};
|
|
1374
|
+
}
|
|
1376
1375
|
return obj[key];
|
|
1377
1376
|
}, object);
|
|
1378
1377
|
}
|
package/web-types.json
CHANGED