@siemens/charts-ng 48.2.0 → 48.4.0
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.
|
@@ -109,7 +109,6 @@ const themeElement = {
|
|
|
109
109
|
const elementUi2 = getProp(style, '--element-ui-2');
|
|
110
110
|
const elementUi3 = getProp(style, '--element-ui-3');
|
|
111
111
|
const elementUi4 = getProp(style, '--element-ui-4');
|
|
112
|
-
const elementBase0 = getProp(style, '--element-base-0');
|
|
113
112
|
const elementBase1 = getProp(style, '--element-base-1');
|
|
114
113
|
const elementTextPrimary = getProp(style, '--element-text-primary');
|
|
115
114
|
const elementTextSecondary = getProp(style, '--element-text-secondary');
|
|
@@ -547,9 +546,9 @@ const themeElement = {
|
|
|
547
546
|
}
|
|
548
547
|
},
|
|
549
548
|
gauge: {
|
|
550
|
-
grey:
|
|
549
|
+
grey: elementUi4,
|
|
551
550
|
value: elementTextPrimary,
|
|
552
|
-
unit:
|
|
551
|
+
unit: elementTextSecondary,
|
|
553
552
|
defaultColor: elementUi0
|
|
554
553
|
}
|
|
555
554
|
}
|
|
@@ -2757,7 +2756,7 @@ class SiChartCircleComponent extends SiChartComponent {
|
|
|
2757
2756
|
: 0;
|
|
2758
2757
|
const top = 32 + offset;
|
|
2759
2758
|
this.series()?.forEach(series => {
|
|
2760
|
-
const s =
|
|
2759
|
+
const s = { type: 'pie', top, ...series };
|
|
2761
2760
|
optionSeries.push(s);
|
|
2762
2761
|
if (this.showLegend()) {
|
|
2763
2762
|
series.data.forEach(data => {
|
|
@@ -2967,8 +2966,8 @@ class SiChartGaugeComponent extends SiChartComponent {
|
|
|
2967
2966
|
splits: 0,
|
|
2968
2967
|
axisLabelDist: 20,
|
|
2969
2968
|
axisFontSize: 20,
|
|
2970
|
-
valueFontSize:
|
|
2971
|
-
unitFontSize:
|
|
2969
|
+
valueFontSize: 40,
|
|
2970
|
+
unitFontSize: 14
|
|
2972
2971
|
};
|
|
2973
2972
|
}
|
|
2974
2973
|
calcValue(value) {
|
|
@@ -3535,7 +3534,7 @@ class SiChartSankeyComponent extends SiChartComponent {
|
|
|
3535
3534
|
applyOptions() {
|
|
3536
3535
|
const series = this.series();
|
|
3537
3536
|
this.actualOptions = {
|
|
3538
|
-
series: series ?
|
|
3537
|
+
series: series ? [{ type: 'sankey', ...series }] : [],
|
|
3539
3538
|
tooltip: { show: this.toolTip() || this.tooltip() }
|
|
3540
3539
|
};
|
|
3541
3540
|
this.applyTitles();
|
|
@@ -3570,7 +3569,7 @@ class SiChartSunburstComponent extends SiChartComponent {
|
|
|
3570
3569
|
applyOptions() {
|
|
3571
3570
|
const series = this.series();
|
|
3572
3571
|
this.actualOptions = {
|
|
3573
|
-
series: series ?
|
|
3572
|
+
series: series ? [{ type: 'sunburst', ...series }] : [],
|
|
3574
3573
|
tooltip: { show: this.toolTip() || this.tooltip() }
|
|
3575
3574
|
};
|
|
3576
3575
|
this.applyTitles();
|