@@ -1006,14 +1006,22 @@ async function setupSlicer() {
10061006
10071007 const max = Math .max (... FINAL_DATASET .value .map (dp => lttb (dp .series ).length ));
10081008
1009+ slicer .value = { start: 0 , end: max };
1010+
10091011 if ((startIndex != null || endIndex != null ) && comp) {
10101012 if (startIndex != null ) {
10111013 slicer .value .start = startIndex;
10121014 comp .setStartValue (startIndex);
1015+ } else {
1016+ slicer .value .start = 0 ;
1017+ comp .setStartValue (0 );
10131018 }
10141019 if (endIndex != null ) {
10151020 slicer .value .end = endIndex + 1
10161021 comp .setEndValue (validSlicerEnd (endIndex + 1 ));
1022+ } else {
1023+ slicer .value .end = max;
1024+ comp .setEndValue (max);
10171025 }
10181026 } else {
10191027 slicer .value = { start: 0 , end: max };
@@ -2103,6 +2111,7 @@ const preciseAllTimeLabels = computed(() => {
21032111
21042112// Simple Slicer labels
21052113const useSlicerCustomFormat = ref (false );
2114+
21062115const slicerLabels = computed (() => {
21072116 let left = ' ' , right = ' ' ;
21082117 if (FINAL_CONFIG .value .chart .zoom .preview .enable ) {
@@ -2134,13 +2143,13 @@ const slicerLabels = computed(() => {
21342143 }
21352144
21362145 if (! useSlicerCustomFormat .value ) {
2137- left = FINAL_CONFIG .value .chart .grid .labels .xAxisLabels .datetimeFormatter .enable
2146+ left = FINAL_CONFIG .value .chart .grid .labels .xAxisLabels .datetimeFormatter .enable && ! FINAL_CONFIG . value . chart . zoom . useDefaultFormat
21382147 ? (preciseAllTimeLabels .value [slicer .value .start ]? .text || ' ' )
21392148 : (timeLabels .value [0 ]? .text || ' ' );
21402149
21412150 const endAbs = Math .max (slicer .value .start , slicer .value .end - 1 )
21422151
2143- right = FINAL_CONFIG .value .chart .grid .labels .xAxisLabels .datetimeFormatter .enable
2152+ right = FINAL_CONFIG .value .chart .grid .labels .xAxisLabels .datetimeFormatter .enable && ! FINAL_CONFIG . value . chart . zoom . useDefaultFormat
21442153 ? (preciseAllTimeLabels .value [endAbs]? .text || ' ' )
21452154 : (timeLabels .value .at (- 1 )? .text || ' ' )
21462155 }
0 commit comments