Non-overlapping bubbles instead of countries + GRAVITY
OK, so you can easily create a bubble map with amCharts, where bubble is placed in the middle of a country area and the size of a bubble depends on some value in your data. That is nice, however what if I want to have those fancy maps which you can find in National Geographic or some other magazine, where the whole map is created of such bubbles and they don’t overlap, giving a much more clear and beautiful picture? Can we do that? Yes!
To solve bubble overlapping, we need collision detection. And not only to detect collision, but to move bubbles apart so that they would not overlap. It’s not as trivial task as it might seem – if you try it yourself, most likely you will end up with endless loops which will eat all the CPU of your computer. Luckily, we have ready to go solutions – physics libraries. Preventing objects from overlapping is bread and butter for physic engines. Plus, they would allow adding more fancy animations and effects to our maps, not just solve overlapping.