Skip to content

Commit bee68f9

Browse files
committed
Zoom chart on initial load after slider creation
1 parent 39c3f33 commit bee68f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/chart/src/ratingHistory.ts

+1
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ export function initModule({ data, singlePerfName }: Opts) {
272272
if (min) btnClick(Math.max(startDate.valueOf(), endDate.subtract(min.duration).valueOf()));
273273
this.classList.add('active');
274274
});
275+
chart.zoomScale('x', { min: initial.valueOf(), max: endDate.valueOf() });
275276
}
276277
}
277278

0 commit comments

Comments
 (0)