n3-charts / line-chart

Awesome charts for AngularJS.
http://n3-charts.github.io/line-chart/
MIT License
1.2k stars 179 forks source link

Pan and zoom should be persistent #540

Open schoofseggl opened 7 years ago

schoofseggl commented 7 years ago

When updating the data of a data series (say with an AJAX call), the zoom and pan is reset. This is rather inconvienient because a user has to repeat the zoom over and over again to see the section of interest if the data changes on a regular base.

Is there a possibility to "pin" the zooming or to data bind the zoom factor?

xlucasdemelo commented 7 years ago

I have the same issue here.

chaosmail commented 7 years ago

Hi guys, sorry for the late reply!

Is this still an issue for you?

Did you try to set the domain-sync-key to sync the pan/zoom domain to a scope property?

Best, Christoph

schoofseggl commented 7 years ago

No, I haven't tried it yet, I realized this not before I wrote this report ^^. Is there a short snippet anywhere in the documentation on how this could be done?