live slides: http://goo.gl/26m4pm
What is new?
old map
new map
What did change?
Multiple data sets can be displayed in one map
Data sets can be switched inside the map (configuration buttons)
The map list is able to display all sets
The list can be switched with tabs
Simple configurational API interface
No HTML required anymore
Simple JavaScript call initializes map
Everything is configurable (language, styles, etc.)
/* include all dependencies and the library itself */
var configuration = {
map: "/files/map.json",
data: "/api/data.json",
/* many more properties available for styling,
labels, controls disabling, etc.
docs on github.com/ssc-hrep3/geochart.js */
};
var chart = geochart.generate(configuration);{
"types": [
{
"type": "AVG_RESP_TIME",
"label": "Average Response Time",
"unit": "ms"
}, {
"type": "OBSRVD_PEERS",
"label": "Observed Peers"
}
],
"countries": {
"CH": {
"label": "Switzerland",
"continent": "Europe",
"values": {
"AVG_RESP_TIME": 10,
"OBSRVD_PEERS": 753
}
},
"US": {
...
},
...
}
}var configuration = {
map: "/files/map.json",
data: "/api/data.json",
};
var configuration_2 = {
map: "/files/map.json",
data: "/api/other-data.json"
};
var chart = geochart.generate(configuration);
/* Use the following calls on another place,
e.g. after a click */
chart.setConfig(configuration_2);
chart.destroy();Generic server-side implementation
No programming, just configuration required
Adherence to database schema is crucial
Removal of Kraken depending code
New Build (Ant/Maven → Grunt)
Bugs removed (e.g. Drag&Drop Bug)
Waiting spinner (in plain CSS)
New Code Structure/Cleaned up
CSS class prefix "gc-"
Real Fullscreen mode
Supports multi-language
Configuration is hidden behind buttons
Color Transitions/Animations
...much more smaller improvements
Loading σ: 85.6ms
Loading Ø: 2553ms
Adapt world map to only parts of the world (e.g. cantons of Switzerland)
works already rudimentary, viewport settings need to be improved
Decrease the loading time by adding tiles
Decrease the number of dependencies (e.g. jQuery, moment)
Increase the API size (i.e. increase the number of methods provided)
Improved User Interface:
Multiple Data Sets:
Full Screen & Spinner
Single Country Info