-
Notifications
You must be signed in to change notification settings - Fork 0
/
things-scene.config.js
81 lines (79 loc) · 1.32 KB
/
things-scene.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import icon from './assets/echart.png';
var templates = [{
type: 'echart',
description: 'echart',
group: 'chartAndGauge',
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
icon,
model: {
type: 'echart',
top: 0,
left: 0,
width: 400,
height: 300,
fontColor: "red",
lineWidth: 1,
series: `
[{
name:'利润',
type:'bar',
label: {
normal: {
show: true,
position: 'inside'
}
},
data:[200, 170, 240, 244, 200, 220, 210]
}, {
name:'收入',
type:'bar',
stack: '总量',
label: {
normal: {
show: true
}
},
data:[320, 302, 341, 374, 390, 450, 420]
}, {
name:'支出',
type:'bar',
stack: '总量',
label: {
normal: {
show: true,
position: 'left'
}
},
data:[-120, -132, -101, -134, -190, -230, -210]
}]`,
option: `
{
tooltip : {
trigger: 'axis',
axisPointer : {
type : 'shadow'
}
},
legend: {
data:['利润', '支出', '收入']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis : [{
type : 'value'
}],
yAxis : [{
type : 'category',
axisTick : {show: false},
data : ['周一','周二','周三','周四','周五','周六','周日']
}]
}`
}
}];
export default {
templates
};