BizCharts 是基于 G2 的 React 图表库,历经阿里两年打磨,覆盖数十个产品,于 11.21 开源,并同步升级到 G2 3.0 版本。
<Chart height={400} data={data} forceFit>
<Axis name="month" />
<Axis name="temperature" label={{formatter: val => `${val}°C`}} />
<Tooltip crosshairs={{type : "y"}} />
<Geom type="line" position="month*temperature" size={2} color={'city'} />
<Geom type='point' position="month*temperature" size={4} color={'city'} />
</Chart>
$ npm install bizcharts
<script src="https://unpkg.com/alibaba/BizCharts/umd/BizCharts.min.js"></script>
$ git clone https://github.com/alibaba/BizCharts/BizCharts.git
$ cd BizCharts
$ npm install
$ npm run build
$ sudo vi /etc/hosts
//加入 127.0.0.1 localhost
$ npm run[-script] demo
- BizCharts
- 组件
- 其他
Copyright (c) 2017 BizCharts Group