Some Ideas

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Lutz Reinhardt

Some Ideas

Post by Lutz Reinhardt » Fri Nov 17, 2000 6:06 am

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

David Gilbert

RE: Some Ideas

Post by David Gilbert » Thu Nov 23, 2000 1:39 pm

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.

Locked