I'm using a d3 hierarchy chart for a kiosk application. I use this blog for implimenting zoom functionality. This will enable zoom on scroll and double click. I need a way to zoom out on whatever way possible. A mouse cant help as this is a Kiosk application. I use this answer to set an initial zoom
Asked
Active
Viewed 189 times
-1
-
@downvoter.. what is wrong? – Jins Peter May 22 '17 at 10:14
-
Are you asking how to set the initial zoom so that the entire tree is visible after it loads? – Mark May 22 '17 at 12:09
-
I set the initial zoom. my users wont have a mouse. they can zoom in by double tap which is a functionality d3 provides. I need a way to zoom out. – Jins Peter May 22 '17 at 12:36
1 Answers
-1
Since the device is to ask as a Kiosk, I believe there's not mouse involved?
If that's true, you'd be left with only touch gestures for any kind of input.
You could:
- Create a button to zoom in/out
- Create a slider to adjust zoom levels
- If device supports multi-touch, you can use the pinch-gesture

jkris
- 5,851
- 1
- 22
- 30