项目作者: visiky

项目描述 :
🎆 Infographic for AntV * D2, based on G2Plot
高级语言: TypeScript
项目地址: git://github.com/visiky/d2-infographic.git
创建时间: 2020-12-12T15:05:56Z
项目社区:https://github.com/visiky/d2-infographic

开源协议:MIT License

下载


D2-Infographic for AntV * 2020 D2



npm Version
npm License

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

Online Game

Install

  1. $ npm i --save d2-infographic

Usage

  • render
  1. import { G2Plot } from '@antv/g2plot';
  2. import { adaptor, defaultOptions } from 'd2-infographic';
  3. const infographic = new G2Plot('container', {
  4. centralText: {
  5. content: 'Hi, AntV',
  6. style: {
  7. fontSize: 24
  8. }
  9. }
  10. }, adaptor, defaultOptions);
  11. infographic.render();
  • update
  1. infographic.update({
  2. music: { type: 'metal' },
  3. });

License

MIT@visiky.