Open val-janeiko opened 6 years ago
You can probably modify the source and make a programmatical zoom function or something. Then you can zoom to domain: zoom to domain in D3
You probably only want to draw the chart once, and then use zoom programmatically to change the domain (ranges of dates you view).
What you were expecting:
After calling draw() with a scale parameter different than the current state of the chart, when a user tries to zoom/pan the chart it should zoom/scroll from the scale specified in the draw() call.
What happened instead:
After calling draw() with a scale parameter different than the current state of the chart, when a user tries to zoom/pan the chart it resets zoom and pan to the state it was before draw() was issued.
Related code:
https://jsfiddle.net/6rqxusw5/271/
Environment