@tetacom/svg-charts 1.7.22 → 1.7.23
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.
|
@@ -489,7 +489,10 @@ class ExtremesBuilder {
|
|
|
489
489
|
if (!hasMin || !hasMax) {
|
|
490
490
|
const linkedSeries = settings.linkedSeries();
|
|
491
491
|
const data = linkedSeries.reduce((acc, current) => {
|
|
492
|
-
|
|
492
|
+
if (current.visible && current.enabled) {
|
|
493
|
+
return acc.concat(current.data);
|
|
494
|
+
}
|
|
495
|
+
return acc;
|
|
493
496
|
}, []);
|
|
494
497
|
const accessor = this.extentAccessorMap.get(settings.orientation);
|
|
495
498
|
if (settings.options.scaleType.type === ScaleType.band) {
|
|
@@ -511,7 +514,6 @@ class ExtremesBuilder {
|
|
|
511
514
|
extremes[1] = extremes[1] * 2;
|
|
512
515
|
}
|
|
513
516
|
else {
|
|
514
|
-
extremes[0] = extremes[0] - 1;
|
|
515
517
|
extremes[1] = extremes[1] + 1;
|
|
516
518
|
}
|
|
517
519
|
}
|
|
@@ -759,7 +761,7 @@ class ScaleService {
|
|
|
759
761
|
config.yAxis.forEach((axis, index) => {
|
|
760
762
|
const newAxis = Axis.createAxis(AxisOrientation.y, config, index);
|
|
761
763
|
if (newAxis.options.visible &&
|
|
762
|
-
config.series.some((serie) => serie.yAxisIndex === index && serie.enabled && serie.data?.length > 0)) {
|
|
764
|
+
config.series.some((serie) => serie.yAxisIndex === index && serie.visible && serie.enabled && serie.data?.length > 0)) {
|
|
763
765
|
newAxis.options.visible = true;
|
|
764
766
|
}
|
|
765
767
|
else {
|