1

I have a project where I read values from a file. I'd like to create a Dynamic chart where the user will have the ability to choose sections of the graphs and these sections will zoom - in in order to see the results. This functionality is similar to what the Excel does.

For example in the initial graph the user is able to see the graph of the whole year but I'd like to be able to zoom in and to see the graph of a specific day in the same panel,labelm frame.

Is it possible to be done via JFreechart???

Nimit Dudani
  • 4,840
  • 3
  • 31
  • 46
  • yes. it is possible with JFreeCharts. you can get the values from where the charts are clicked and draw another chart relating to that. – Srinivas B Nov 20 '12 at 13:28
  • so if I understood you well, I can design a chart in a frame and then I can get from it specific values which I use to design in a second chart in a different frame? – kostas papadopoulos Nov 20 '12 at 14:07

1 Answers1

1

In the Java Web Start demo, most examples have zooming enabled. To zoom, right-click to see the context menu, click and drag a selection or use the mouse wheel. TimeSeriesChartDemo1, found in org.jfree.chart.demo, is a good starting point.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
  • Thanks for your reply!!! The biggest problem that I don't know if it can be solved via JFreechart is that I don't want to import my chart as an image in a frame, but I want to be more dynamic. For example the user should be able to see the frame with the chart (this chart maybe for a whole year) and with his mouse he will be able to zoom-in and to see the chart for a specific day in the same frame – kostas papadopoulos Nov 21 '12 at 09:20
  • Try the demo to see how easy it is. This [answer](http://stackoverflow.com/a/5522583/230513) shows how to add external controls. – trashgod Nov 21 '12 at 18:00