Comparing version 1.1.10 to 1.1.11
{ | ||
"name": "xl-chart", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"description": "```\r npm install xl-chart --save-dev\r ```", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -11,2 +11,8 @@ # install | ||
# purpose | ||
``` | ||
本插件是为BI和快速创建手机版本图表而建,提供了快速重载,销毁重载等性能优化 | ||
pc版 还在考虑开放ing,如果需要 可以私信 1772907731@qq.com | ||
``` | ||
# use | ||
@@ -218,1 +224,42 @@ | ||
``` | ||
#reload | ||
```js | ||
//可以更新任意值 | ||
const chart = new xlChart.Normal({}); | ||
chart.reloadOption({ | ||
data:{ | ||
num1:Math.floor(Math.random()*1000+1), | ||
num2:Math.floor(Math.random()*1000+1), | ||
num3:Math.floor(Math.random()*1000+1), | ||
}, | ||
dataField: ["num1", "num2", "num3"], | ||
seriesField: { | ||
num1: { | ||
name: "我是数据1", | ||
type: "bar", | ||
color: "#6BEDD1", | ||
}, | ||
num2: { | ||
name: "我是数据2", | ||
type: "line", | ||
color: "#00C49A" | ||
}, | ||
num3: { | ||
name: "我是数据3", | ||
type: "line", | ||
color: "#FA8F67" | ||
} | ||
} | ||
}); | ||
``` | ||
#destroy | ||
```js | ||
// 销毁重构 | ||
const chart = new xlChart.Normal({}); | ||
chart.destroy(); | ||
``` |
239743
264