Skip to content

visiky/d2-infographic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D2-Infographic for AntV * 2020 D2

npm Version npm License

Infographic for D2 games, based on G2Plot v2. LIVE DEMO

Online Game

Install

$ npm i --save d2-infographic

Usage

  • render
import { G2Plot } from '@antv/g2plot';
import { adaptor, defaultOptions } from 'd2-infographic';

const infographic = new G2Plot('container', {
  centralText: {
    content: 'Hi, AntV',
    style: {
      fontSize: 24
    }
  }
}, adaptor, defaultOptions);

infographic.render();
  • update
infographic.update({
  music: { type: 'metal' },
});

License

MIT@visiky.

About

🎆 Infographic for AntV * D2, based on G2Plot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published