Aloha,
Everytime I'm sitting on an airplane I'm taking out the magazine where it shows the flight connections of the airline on a worldmap. Somehow I really like that kind of visualization.
For those that don't know what I'm talking about, it's something like this:
You can choose this kind of visualization for different kind of data, e.g. simple connections, weighted connections to visualize a flow, incoming/outgoing connections and more.
Long story short...I've added the ability to cover some use cases I came up with. The first one is just a visualization of simple connections without showing any direction.
Hmm...so far so good but what if we would like to visualize a data flow from one point to another? Therefor the connection itself need to have a value which defines the thickness of the connection. Well...here it is...Ok that's nice...so what about gradients...would it not be nice to have the connections change their color on their way from their startpoint to their endpoint? Yes it would be...so...
Allright...with this I covered all things I've implemented so far and as always I have no idea if someone has a use for that because I simply created it for the fun of it.
But if you can use it and you need more features...just let me know and I will try to make it happen.
If you are interested in how the above charts have been done you can find the code for it in the WorldmapConnectionsTest.java file in the test package.
In principle you can add MapPoint objects with a name, a color and latitude/longitude coordinates to show the points. The connections are of type MapConnection which takes 2 MapPoints, a value, a color or gradient and a tooltip text.
Attention: The connections are not clickable yet...so there is no tooltip and no user interaction implemented right now but it might follow.
The code can be found over at github at: https://github.com/HanSolo/charts
You will find the changes in the dev branch.
That's it for today, so enjoy your upcoming weekend...and keep coding...
Gerrit,
ReplyDeleteAs always, great job! I love maps because they're so spatial ;-)
Carl