@visactor/taro-vchart 1.1.0-beta.4 → 1.1.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -83,10 +83,10 @@ import VChart from '@visactor/taro-vchart';
|
|
|
83
83
|
| ------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
84
84
|
| type | String | 配置的环境,目前组件支持的环境有:**字节小程序**('tt'),**飞书小程序**('lark'),**浏览器**('h5', 'web') ,如果没有声明,则会通过 `Taro.getEnv()` 自动获取 |
|
|
85
85
|
| canvasId | String | 图表 id, 必确唯一 |
|
|
86
|
-
| spec | Object | 图表配置项, 请参考[VChart 配置项](
|
|
86
|
+
| spec | Object | 图表配置项, 请参考[VChart 配置项](https://www.visactor.io/vchart/option/) |
|
|
87
87
|
| style | Object | 图表容器样式 |
|
|
88
88
|
| events | Object[] | 事件绑定配置,具体配置为定义[如下](#事件配置) |
|
|
89
|
-
| options | Object | 初始化 VChart 实例传入的额外配置项,同 [VChart 实例化配置项](
|
|
89
|
+
| options | Object | 初始化 VChart 实例传入的额外配置项,同 [VChart 实例化配置项](https://www.visactor.io/vchart/api/API/vchart#options) |
|
|
90
90
|
| onChartInit | Function | 图表初始化完后触发的回调 |
|
|
91
91
|
| onChartReady | Function | 图表渲染完毕后触发的回调 |
|
|
92
92
|
| onChartUpdate | Function | 图表更新完毕后触发的回调 |
|
|
@@ -110,9 +110,9 @@ interface IEvent {
|
|
|
110
110
|
}
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
- `type` 代表事件名称,支持的值详见:[事件分类](
|
|
114
|
-
- `query` 事件 API 中的事件筛选配置,使用详见:[事件过滤](
|
|
115
|
-
- `handler` 即事件监听函数,函数的参数类型详见:[事件参数](
|
|
113
|
+
- `type` 代表事件名称,支持的值详见:[事件分类](https://www.visactor.io/vchart/api/API/event#%E4%BA%8B%E4%BB%B6%E5%88%86%E7%B1%BB)
|
|
114
|
+
- `query` 事件 API 中的事件筛选配置,使用详见:[事件过滤](https://www.visactor.io/vchart/api/API/event#%E4%BA%8B%E4%BB%B6%E8%BF%87%E6%BB%A4)
|
|
115
|
+
- `handler` 即事件监听函数,函数的参数类型详见:[事件参数](https://www.visactor.io/vchart/api/API/event#%E4%BA%8B%E4%BB%B6%E5%8F%82%E6%95%B0)
|
|
116
116
|
|
|
117
117
|
## 快速上手
|
|
118
118
|
|
|
@@ -204,7 +204,7 @@ export function Pie() {
|
|
|
204
204
|
- `chartInstance.updateSpec()` 基于 Spec 更新图表
|
|
205
205
|
- `chartInstance.updateData()` 基于数据更新图表
|
|
206
206
|
|
|
207
|
-
详细使用方法请参考:[VChart API](
|
|
207
|
+
详细使用方法请参考:[VChart API](https://www.visactor.io/vchart/api/API/vchart)
|
|
208
208
|
|
|
209
209
|
#### 示例
|
|
210
210
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/taro-vchart",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.6",
|
|
4
4
|
"description": "Taro VChart 图表组件",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "lib/src/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@visactor/vchart": "1.1.0-beta.
|
|
34
|
+
"@visactor/vchart": "1.1.0-beta.6"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@rushstack/eslint-patch": "~1.1.4",
|