tangtan / VisGifer

Generating short-form videos or data gifs for animated data visualizations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VisGifer

Creating short-form videos and gifs for animated data visualizations.

Visualization

The visualization module is powered by G2.

Configuration

{
  "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
}

Dataset

TODO

Usage

Interactive Mode

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

Command Mode

# install dependencies and build for production with minification
npm install && npm run build

# generate visualization gifs
npm run render

Testing

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

About

Generating short-form videos or data gifs for animated data visualizations.


Languages

Language:JavaScript 75.7%Language:Vue 23.9%Language:HTML 0.4%