File tree Expand file tree Collapse file tree 4 files changed +42
-10
lines changed
Expand file tree Collapse file tree 4 files changed +42
-10
lines changed Original file line number Diff line number Diff line change @@ -695,14 +695,22 @@ async function setupSlicer() {
695695
696696 const { startIndex , endIndex } = FINAL_CONFIG .value .style .zoom ;
697697 const comp = slicerComponent .value ;
698- const max = len .value ;
698+ const max = len .value ;
699+
700+ slicer .value = { start: 0 , end: max };
699701
700702 if ((startIndex != null || endIndex != null ) && comp) {
701703 if (startIndex != null ) {
702- comp .setStartValue (startIndex);
704+ comp .setStartValue (startIndex);
705+ } else {
706+ slicer .value .start = 0 ;
707+ comp .setStartValue (0 );
703708 }
704709 if (endIndex != null ) {
705- comp .setEndValue (validSlicerEnd (endIndex + 1 ));
710+ comp .setEndValue (validSlicerEnd (endIndex + 1 ));
711+ } else {
712+ slicer .value .end = max;
713+ comp .setEndValue (max);
706714 }
707715 } else {
708716 slicer .value = { start: 0 , end: max };
Original file line number Diff line number Diff line change @@ -285,12 +285,20 @@ async function setupSlicer() {
285285 const { startIndex , endIndex } = FINAL_CONFIG .value .style .chart .zoom ;
286286 const comp = slicerComponent .value ;
287287
288+ slicer .value = { start: 0 , max: maxLength .value };
289+
288290 if ((startIndex != null || endIndex != null ) && comp) {
289291 if (startIndex != null ) {
290- comp .setStartValue (startIndex);
292+ comp .setStartValue (startIndex);
293+ } else {
294+ slicer .value .start = 0 ;
295+ comp .setStartValue (0 );
291296 }
292297 if (endIndex != null ) {
293- comp .setEndValue (validSlicerEnd (endIndex + 1 ));
298+ comp .setEndValue (validSlicerEnd (endIndex + 1 ));
299+ } else {
300+ slicer .value .end = maxLength .value ;
301+ comp .setEndValue (maxLength .value );
294302 }
295303 } else {
296304 slicer .value = {
Original file line number Diff line number Diff line change @@ -581,12 +581,20 @@ async function setupSlicer() {
581581 const comp = slicerComponent .value ;
582582 const maxLength = Math .max (... FINAL_DATASET .value .map (ds => ds .series .length ));
583583
584+ slicer .value = { start: 0 , end: maxLength };
585+
584586 if ((startIndex != null || endIndex != null ) && comp) {
585587 if (startIndex != null ) {
586- comp .setStartValue (startIndex);
588+ comp .setStartValue (startIndex);
589+ } else {
590+ slicer .value .start = 0 ;
591+ comp .setStartValue (0 );
587592 }
588593 if (endIndex != null ) {
589- comp .setEndValue (validSlicerEnd (endIndex + 1 ));
594+ comp .setEndValue (validSlicerEnd (endIndex + 1 ));
595+ } else {
596+ slicer .value .end = maxLength;
597+ comp .setEndValue (maxLength);
590598 }
591599 } else {
592600 slicer .value = { start: 0 , end: maxLength };
Original file line number Diff line number Diff line change @@ -460,14 +460,22 @@ async function setupSlicer() {
460460
461461 const { startIndex , endIndex } = FINAL_CONFIG .value .style .chart .zoom ;
462462 const comp = slicerComponent .value ;
463- const max = maxSeries .value ;
463+ const max = maxSeries .value ;
464+
465+ slicer .value = { start: 0 , end: max };
464466
465467 if ((startIndex != null || endIndex != null ) && comp) {
466468 if (startIndex != null ) {
467- comp .setStartValue (startIndex);
469+ comp .setStartValue (startIndex);
470+ } else {
471+ slicer .value .start = 0 ;
472+ comp .setStartValue (0 );
468473 }
469474 if (endIndex != null ) {
470- comp .setEndValue (validSlicerEnd (endIndex + 1 ));
475+ comp .setEndValue (validSlicerEnd (endIndex + 1 ));
476+ } else {
477+ slicer .value .end = max;
478+ comp .setEndValue (max);
471479 }
472480 } else {
473481 slicer .value = { start: 0 , end: max };
You can’t perform that action at this time.
0 commit comments