Skip to content

Commit

Permalink
docs: 增加图表指引公告 (#3146)
Browse files Browse the repository at this point in the history
  • Loading branch information
visiky authored Mar 10, 2022
1 parent 946aac9 commit e3fbced
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/manual/plots/funnel.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Funnel
order: 6
---

`markdown:docs/manual/plots/funnel.zh.md`
37 changes: 37 additions & 0 deletions docs/manual/plots/funnel.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: 漏斗图
order: 6
---

<iframe width="100%" height="500" frameborder="0" allowfullscreen style="border:1px solid #d9d9d9;" src="https://www.yuque.com/antv/g2plot/funnel-guide?view=doc_embed">
## 快速上手
<div class="sign">
```ts
import { Funnel } from '@antv/g2plot';
const data = [
{ stage: '简历筛选', number: 253 },
{ stage: '初试人数', number: 151 },
{ stage: '复试人数', number: 113 },
{ stage: '录取人数', number: 87 },
{ stage: '入职人数', number: 59 },
];
const plot = new Funnel('container', {
data: data,
xField: 'stage',
yField: 'number',
legend: false,
});
plot.render();
```
</div>
📊 查看更多<a href="/zh/examples/more-plots/funnel#basic" target='blank'>示例</a>.
🎨 漏斗图详细的配置参考 [API 文档](/zh/docs/api/plots/funnel)。
4 changes: 2 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ module.exports = {
indexName: 'antv_g2plot',
},
announcement: {
zh: '',
en: '',
zh: '✨欢迎订阅图表指引,不定时会更新: https://www.yuque.com/antv/g2plot/plot-guide',
en: '✨欢迎订阅图表指引,不定时会更新: https://www.yuque.com/antv/g2plot/plot-guide',
}
},
};

0 comments on commit e3fbced

Please sign in to comment.