some ideas:
- a Mouse-Move Event that return the logical position in the chart
-> for example: series:1 item:10
- the user can select a area in a chart
- the user can enlarge a selected area
Some Ideas
RE: Some Ideas
Lutz,
Thanks for your suggestions. This would be a great enhancement to JFreeChart, though slightly difficult to implement on account of the fact that JFreeChart draws to a Graphics2D...but still not impossible.
The mouse code can be added to JFreeChartPanel, then the API for JFreeChart would need extending to enable device coordinates to be converted back to data points. JFreeChart would have to know which region the plot occupies, then the plot would have to get the axes to convert the device coordinates to data points and send it all back up the chain.
Personally, I'm going to struggle to find time to do this in the near future, but I'll add it to my ever expanding to-do list. If anyone out there has implemented something that works, please post the code.
Regards,
DG.
Thanks for your suggestions. This would be a great enhancement to JFreeChart, though slightly difficult to implement on account of the fact that JFreeChart draws to a Graphics2D...but still not impossible.
The mouse code can be added to JFreeChartPanel, then the API for JFreeChart would need extending to enable device coordinates to be converted back to data points. JFreeChart would have to know which region the plot occupies, then the plot would have to get the axes to convert the device coordinates to data points and send it all back up the chain.
Personally, I'm going to struggle to find time to do this in the near future, but I'll add it to my ever expanding to-do list. If anyone out there has implemented something that works, please post the code.
Regards,
DG.