Reputation: 27
I've been looking for map charts with pie charts on them where tooltip will pop on hover having the data in it. Now, I've been looking for some libraries like http://jvectormap.com, amcharts that have this functionality. But I have no interest in buying these products since all I want to use is this module.
I tried Google map with chart maker but still not getting what I actually want.
Here is a screenshot of what I want to create:
I would appreciate if someone could help me. Meanwhile, I will continue my research on them
Upvotes: 1
Views: 367
Reputation: 205775
Using jmapviewer, add a custom MapMarker
, as shown here. In your marker's implementation of paint()
, invoke the draw()
method of the JFreeChart
matching the marker's coordinates. A typical invocation is seen in the paintComponent()
method of ChartPanel
.
Upvotes: 1