Skip to content

Commit

Permalink
fix: 修改demo
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue committed Nov 6, 2019
1 parent 5713386 commit 78b6d4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/tutorial/getting-started.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ order: 0

### 通过 npm 安装

[![](https://img.shields.io/npm/v/@antv/f2.svg?style=flat-square&maxAge=600#align=left&display=inline&height=20&originHeight=20&originWidth=80&search=&status=done&width=80)](https://npmjs.com/package/@antv/f2)[![](https://img.shields.io/npm/dm/@antv/f2.svg?style=flat-square&maxAge=600#align=left&display=inline&height=17&originHeight=20&originWidth=140&search=&status=done&width=116)](https://npmjs.com/package/@antv/f2)
[![](https://img.shields.io/npm/v/@antv/f2.svg)](https://npmjs.com/package/@antv/f2)
[![](https://img.shields.io/npm/dm/@antv/f2.svg)](https://npmjs.com/package/@antv/f2)

```bash
npm install @antv/f2 --save
Expand Down
4 changes: 3 additions & 1 deletion examples/basic/demo/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const chart = new F2.Chart({
chart.source(data);

// Step 3:创建图形语法,绘制柱状图,由 genre 和 sold 两个属性决定图形位置,genre 映射至 x 轴,sold 映射至 y 轴
chart.interval().position('genre*sold').color('genre');
chart.interval()
.position('genre*sold')
.color('genre');

// Step 4: 渲染图表
chart.render();

0 comments on commit 78b6d4f

Please sign in to comment.