Skip to content

Zoom using zoomPercent#381

Closed
jepperaskdk wants to merge 1 commit intochartjs:masterfrom
jepperaskdk:feature/zoom-large-dataset
Closed

Zoom using zoomPercent#381
jepperaskdk wants to merge 1 commit intochartjs:masterfrom
jepperaskdk:feature/zoom-large-dataset

Conversation

@jepperaskdk
Copy link
Copy Markdown

@jepperaskdk jepperaskdk commented Sep 5, 2020

Solves: #379

So, when using e.g. 1000 data-points, the zoom is slow in ticks of 1. It seems the indices were only changed in ticks of 1, rather than ticks of the percentage of the current-range.
This PR uses the speed property to set the percentage of the current range to be zoomed, e.g. with 1000 data points currently in view, a speed of 0.1 means we zoom 10% in on that range.

Next up should be to zoom at centerPointer, rather than either right or left.

EDIT: Not sure if this overlaps with #152, but please do some update on that in that case.

@gistiv
Copy link
Copy Markdown

gistiv commented Nov 18, 2020

Same thing for panning would be nice as well

@kurkle
Copy link
Copy Markdown
Member

kurkle commented Mar 9, 2021

This was fixed by #434

@kurkle kurkle closed this Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants