Infographic for D2 games, based on G2Plot v2. LIVE DEMO
$ npm i --save d2-infographic
- 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' },
});
MIT@visiky.