d2-infographic
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

D2-Infographic for AntV * 2020 D2

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

npm Version npm License

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@me-momo.

Readme

Keywords

Package Sidebar

Install

npm i d2-infographic

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

581 kB

Total Files

49

Last publish

Collaborators

  • kasmine