1

I have implemented gantt chart using jfreechart. I want to know how can I get this chart accessed from client side. Also I do not want just image of the chart, I also want the zooming functionality alongside it. How to achieve this? Please help.

genonymous
  • 1,598
  • 3
  • 18
  • 27

2 Answers2

1

Can you please elaborate more?

While minimally interactive charts are possible in a servlet context, a fully interactive desktop application may be made available from the server via Java Web Start. Among the JFreeChart samples, the JWS demo best illustrates the potential.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045
  • Thanks for answering. Here are the details. My ganttchart creation logic is at server side. I get all the functionality of this chart at server side(e.g. zooming the chart, rendering the chart bars etc) because I have chart object at server side. However I do not get this power at client side because I am just sending produced PNG image to client side. In order to achieve that, as per you said I probably will have to go with JWS approach. But still, isn't there any other approach besides JWS? – genonymous Mar 15 '13 at 22:48
  • @genonymous: Not that I'm aware of. I see the servlet & JWS approaches as complementary. I usually just have the JWS app connect to the same server for data, but an embedded database like H2 would work, too. – trashgod Mar 16 '13 at 01:32
0

I think you must catch client event and handle it from server side, and of course reload the image with the changes.

Skazi
  • 66
  • 6
  • Yeah, I can do that but that will increase the response time to the client request greatly. e.g. Client mat send many zoom areas and for each of that request server will have to produce image again and again and then send it to client side. – genonymous Mar 16 '13 at 01:44