This representation shows the number of pokemons classified by type.
###Functions Color notice one type and rectangle are labeled with the other type of the pokemon. The area of a rectangle is proportional to the number of the pokemons of these two types.
###Technics
Data are store in a database provide by Pokeapi and request through REST API.
The view use D3.js library and treemap layout.
This is my first try with this two technologies (API and treemap). So I just apply the examples...
I have some issues due to the asynchrony of json import. For this test, I use extract.htm that print the imported json in the console.log U_U. Then copy/past the last print in a text file (pokemap.json).
Looking for a better solution...
###Thanks
- Thanks to Pokemon for the game and all the related data.
- Thanks to pokeapi for sharing the data.
- Thanks to D3.js for the treemap layout.