@siemens/charts-ng 48.11.1 → 48.11.2

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.
@@ -1436,12 +1436,14 @@ class SiChartComponent {
1436
1436
  }
1437
1437
  modifyTopAlignment(key) {
1438
1438
  const options = this.actualOptions;
1439
- if (options.grid) {
1439
+ if (options.grid && !this.options()?.grid) {
1440
1440
  const gridOptions = this.getThemeCustomValue([key, 'grid'], {});
1441
1441
  echarts.util.merge(options.grid, gridOptions, true);
1442
1442
  }
1443
- const legendOptions = this.getThemeCustomValue([key, 'legend'], {});
1444
- options.legend?.forEach(legend => echarts.util.merge(legend, legendOptions, true));
1443
+ if (!this.options()?.legend) {
1444
+ const legendOptions = this.getThemeCustomValue([key, 'legend'], {});
1445
+ options.legend?.forEach(legend => echarts.util.merge(legend, legendOptions, true));
1446
+ }
1445
1447
  }
1446
1448
  afterChartInit(skipZoom) {
1447
1449
  this.chart.on('datazoom', (event) => this.handleDataZoom(event, 'echart'));