antvis/G2
The issue has been closed
Add auto lib #5449
pearmini posted onGitHub
Auto Lib
添加 auto lib,主要包含 auto mark。给 G2 添加智能分析的能力,同时将 AVA 的能力通过 G2 展现给 G2 的用户:在 G2 点官网上直接投出,并且提供到 AVA 的链接。
开始使用
可以直接使用 Chart:
import { Chart } from '@antv/g2';
也可以按需打包 Chart:
import { Runtime, corelib, autolib, extend } from '@antv/g2';
const Chart = extend(Runtime, { ...corelib(), ...autolib() });
然后如下使用:
const chart = new Chart();
// API
chart.auto().data(data);
// Options
chart.options({ type: 'auto', data });
TODO
- code
- test
- docs
- demos