Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 添加 website #1368

Merged
merged 7 commits into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
dist/
test
build/
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/type-annotation-spacing": 0,
"@typescript-eslint/no-empty-function": 1
"@typescript-eslint/no-empty-function": 1,
"no-undef": 0,
"@typescript-eslint/no-var-requires": 0
hustcc marked this conversation as resolved.
Show resolved Hide resolved
}
}
18 changes: 0 additions & 18 deletions .umirc.ts

This file was deleted.

74 changes: 0 additions & 74 deletions docs/demos/scatter.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/index.md

This file was deleted.

14 changes: 14 additions & 0 deletions docs/manual/contact.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: 联系我们
order: 7
---

如果你有任何的问题、建议、反馈或者交流意愿,可以通过如下方式联系我们:

- 官方推荐 [GitHub issues](https://github.com/antvis/G2Plot/issues)

- 邮件:antv@antfin.com

- 语雀专栏:https://www.yuque.com/antv

- 知乎专栏:https://zhuanlan.zhihu.com/aiux-antv
14 changes: 14 additions & 0 deletions docs/manual/contact.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: 联系我们
order: 7
---

如果你有任何的问题、建议、反馈或者交流意愿,可以通过如下方式联系我们:

- 官方推荐 [GitHub issues](https://github.com/antvis/G2Plot/issues)

- 邮件:antv@antfin.com

- 语雀专栏:https://www.yuque.com/antv

- 知乎专栏:https://zhuanlan.zhihu.com/aiux-antv
60 changes: 60 additions & 0 deletions docs/manual/general/method.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
title: 图表方法
order: 1
---

# 图表方法

## render() 📌

**必选**

渲染图表。

## updateConfig()

**可选**

更新图表配置项。

```js
plot.updateConfig({
width: 500,
height: 600,
legend: {
visible: false,
},
});

plot.render();
```

## changeData()

**可选**

更新图表数据。`updateConfig()`方法会导致图形区域销毁并重建,如果只进行数据更新,而不涉及其他配置项更新,推荐使用本方法。

```js
plot.changeData(newData);
```

## repaint()

**可选**

图表画布重绘。

## destroy()

**可选**

销毁图表。

## getData()

获取图表数据。

## getPlotTheme()

获取图表 theme。
50 changes: 50 additions & 0 deletions docs/manual/general/method.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: 图表方法
order: 1
---

# 图表方法

## render() 📌

**必选**

渲染图表。

## update()

**可选**

更新图表配置项。

```js
plot.update({
width: 500,
height: 600,
legend: {
visible: false,
},
});

plot.render();
```

## changeData()

**可选**

更新图表数据。`update()`方法会导致图形区域销毁并重建,如果只进行数据更新,而不涉及其他配置项更新,推荐使用本方法。

```js
plot.changeData(newData);
```

## destroy()

**可选**

销毁图表。

## changeSize()

修改画布大小。
12 changes: 12 additions & 0 deletions docs/manual/getting-started.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: 快速上手
order: 1
---

## 安装

### 浏览器引入

### 通过 npm 安装

### 快速使用
12 changes: 12 additions & 0 deletions docs/manual/getting-started.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: 快速上手
order: 1
---

## 安装

### 浏览器引入

### 通过 npm 安装

### 快速使用
Loading