Creating short-form videos and gifs for animated data visualizations.
The visualization module is powered by G2.
{
"name": "Increases in Leaf Area (10^11 m2)",
"data": [
{
"name": "Croplands",
"value": 17.85
},
{
"name": "Forests",
"value": 16.72
},
{
"name": "Grasslands",
"value": 7.85
},
{
"name": "Others",
"value": 11.5
}
],
"vis_type": "barHorizontalRound",
"vis_duration": 4,
"vis_position_x": 10,
"vis_position_y": 10,
"vis_size_w": 400,
"vis_size_h": 360,
"vis_colors": ["#e0b25a"],
"font_size": 16,
"font_color": "#ffffff",
"background_fill": "#703434",
"background_opacity": 0.4,
"background_src": "/static/sample.mp4", // support video or image background
"background_size_w": 960, // only valid when background_src exist
"background_size_h": 540
}
TODO
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# install dependencies and build for production with minification
npm install && npm run build
# generate visualization gifs
npm run render
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test