huww98 / TimeChart

An chart library specialized for large-scale time-series data, built on WebGL.
https://huww98.github.io/TimeChart
MIT License
358 stars 32 forks source link

Zoom & Pause #37

Closed chirag-lathiya-work closed 2 years ago

chirag-lathiya-work commented 2 years ago

Hi @huww98

As per my current requirements, I need Zoom In & Zoom Out manually by clicking on the buttons (Right now it's possible thorough Mouse Scroll & Mouse Pan multi finger gesture)

I also noticed then when we zoom in the x axis, the live data stopped showing. (it stopped showing new data, after zoom In)

Your Stop is working, but when we required Resume/Start, that feature is not exist.

Let me know if that's possible.

Thank you for making amazing library.

huww98 commented 2 years ago

Please use the "follow data" button to resume live data after pan/zoom.

chirag-lathiya-work commented 2 years ago

Okay thanks for letting me know that.

Is there any manual event possible for zoom/pan?

huww98 commented 2 years ago

Yes. I quote my README:

xRange / yRange ({min: number, max: number} or 'auto'): The range of x / y axes. Also use this to control pan / zoom programmatically.