chart zoom for jsp implementation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
husain
Posts: 9
Joined: Thu Nov 19, 2009 5:12 am
antibot: No, of course not.

chart zoom for jsp implementation

Post by husain » Thu Dec 10, 2009 12:29 pm

Hi

please suggest some steps for implementing a chart on JSP +STRUTS implementation with zoom in/zoom out features .

Thanks
Husain

jleech
Posts: 62
Joined: Fri Oct 26, 2007 9:18 pm

Re: chart zoom for jsp implementation

Post by jleech » Thu Dec 10, 2009 6:11 pm

1. Use SVG. Augment generated SVG with javascript mouse capture / drag to implement zoom and pan, or just let the user do those however the browser lets them. Different browsers use different keystrokes combined with the mouse for zoom and pan. Also full page zoom (Ctrl + / -) works for SVG. If you got really advanced you could modify the generated SVG with clipping on each axis, and the chart itself, and zoom each area independently but in sync so that the axis are always visible. This would be most similar to the zoom behavior in the Swing Jfreechart panel.
2. Google maps style. Generate the chart at several resolutions from small to large, and generate tiles from it. Implement zoom and pan in javascript. There may be some open source projects that can do this for you, you just point them at the tile generator.
3. Applet.

Locked