Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zooming and Sliding function in V2 #466

Open
samwzm opened this issue Mar 19, 2016 · 6 comments
Open

Zooming and Sliding function in V2 #466

samwzm opened this issue Mar 19, 2016 · 6 comments

Comments

@samwzm
Copy link

samwzm commented Mar 19, 2016

in V1, the zoom function is double click and then can slide to right or left. however, in V2, the zoom is alt+mouse, and can't slide once zoom in.

I really like the slide function after zooming in. I don't know if the same function exists in V2. if so, could anyone share an example?

thanks,
Sam

@samwzm
Copy link
Author

samwzm commented Mar 21, 2016

I checked out the new version, with the sliding function without alt key. however, it didn't work. even I setup pan: false. in fact, I checked the LineChart.js and found out the pan value is false by default.

@lorem--ipsum
Copy link
Member

You probably checked v1 then. Here's an example of what you're trying to achieve with v2 : http://codepen.io/anon/pen/JXWavo

@samwzm
Copy link
Author

samwzm commented Mar 21, 2016

I run "npm install n3-charts" and I believe it will retrieve the latest V2, am I right?

also, in my case, there is y2, maybe which caused the issue?

@chaosmail
Copy link
Contributor

also here, a codepen would greatly help to solve this issue. Maybe start with editing http://codepen.io/chaosmail/pen/zrPJYb
Thanks a lot for filing all the issues, it helps a lot to improve n3-charts

@lorem--ipsum
Copy link
Member

Any updates on this ?

@skirscher
Copy link

skirscher commented Nov 2, 2016

Using latest version (installed manually w/o npm or anything like that) and zoom is not working. Using d3 v3. Found a plunker from this github where zoom is working but when I copied the code into my js & gave it a new html file to work from, it causes several errors & doesn't work. Including the errors below:

Error: $scope.data.map is not a function
Error: datasets.sets[key] is undefined
Error: this.sets[series.dataset] is undefined
TypeError: this._scale is undefined

Link to plunker referenced:
http://plnkr.co/edit/ewHIITSFoHfIXDxEN7tp?p=preview

If anyone has any suggestions or needs further information, please contact me at [email protected]

Thanks,
-S.K.

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

No branches or pull requests

4 participants