Hi all,
I would like to know is there any way to create a Map like this [ check the URL given below ] using JFreeChart or any Java libraries ? There will be thousands of small components varying size and color. And I have to display customized tooltips on each components..
http://www.rejimani.com/images/tmap.jpg
Any guidelines available? Please help me...
Thanks,
reji mani from Korea
Maps using JFreeChart
Re: Maps using JFreeChart
Hi Reji,
You *could* represent the data using an IntervalXYDataset and then write an XYBlockRenderer that draws the individual blocks. I can think of a couple of issues though:
- you'd have to do the layout when you constructed your dataset;
- with thousands of blocks, the current tool tip implementation might start to sag (this is a problem for regular chart types too, though).
If I understand the picture though, your data is really one-dimensional. The two-dimensional layout is just to fit everything on the screen. So a custom component might make more sense.
Regards,
DG.
You *could* represent the data using an IntervalXYDataset and then write an XYBlockRenderer that draws the individual blocks. I can think of a couple of issues though:
- you'd have to do the layout when you constructed your dataset;
- with thousands of blocks, the current tool tip implementation might start to sag (this is a problem for regular chart types too, though).
If I understand the picture though, your data is really one-dimensional. The two-dimensional layout is just to fit everything on the screen. So a custom component might make more sense.
Regards,
DG.
Re: Maps using JFreeChart
Hi Reji,
I had a bit of success using GeoTools (.org). It is not exactly what you want, maybe, but have a look. You can catch the map highlight event and add some information to it. However, you probably would have to implement some facility to turn your map into a real geomap, which might not be worth it.
Greetings,
GreGie
I had a bit of success using GeoTools (.org). It is not exactly what you want, maybe, but have a look. You can catch the map highlight event and add some information to it. However, you probably would have to implement some facility to turn your map into a real geomap, which might not be worth it.
Greetings,
GreGie
Re: Maps using JFreeChart
Hi,
Thanks for the suggestions.. I have accomplished the target by using graphis components and XYLayout.. But not an optimal solution..
http://www.rejimani.com/images/tablemap.jpg
regards,
reji
Thanks for the suggestions.. I have accomplished the target by using graphis components and XYLayout.. But not an optimal solution..
http://www.rejimani.com/images/tablemap.jpg
regards,
reji