|
@@ -70,7 +70,7 @@ export class SynthesizeStatisticsComponent implements OnInit {
|
70
|
70
|
this.getMaintainData();
|
71
|
71
|
}
|
72
|
72
|
|
73
|
|
- // 报修来源
|
|
73
|
+ // 故障来源
|
74
|
74
|
repairsChart() {
|
75
|
75
|
let postData:any = {
|
76
|
76
|
startDate: this.dateRange[0],
|
|
@@ -103,6 +103,7 @@ export class SynthesizeStatisticsComponent implements OnInit {
|
103
|
103
|
name: "",
|
104
|
104
|
type: "pie",
|
105
|
105
|
radius: ["30%", "50%"],
|
|
106
|
+ center:["50%","55%"],
|
106
|
107
|
data: datas,
|
107
|
108
|
emphasis: {
|
108
|
109
|
itemStyle: {
|
|
@@ -193,7 +194,12 @@ export class SynthesizeStatisticsComponent implements OnInit {
|
193
|
194
|
type: 'bar',
|
194
|
195
|
barWidth: '30%',
|
195
|
196
|
color: '#FFD68D',
|
196
|
|
- data: datas
|
|
197
|
+ data: datas,
|
|
198
|
+ label:{
|
|
199
|
+ show:true,
|
|
200
|
+ position: "top", // 展示在柱子的上方
|
|
201
|
+ color: "#333"
|
|
202
|
+ }
|
197
|
203
|
}
|
198
|
204
|
]
|
199
|
205
|
}
|
|
@@ -258,7 +264,12 @@ export class SynthesizeStatisticsComponent implements OnInit {
|
258
|
264
|
type: 'bar',
|
259
|
265
|
barWidth: '30%',
|
260
|
266
|
color: '#72C0DD',
|
261
|
|
- data: datas
|
|
267
|
+ data: datas,
|
|
268
|
+ label:{
|
|
269
|
+ show:true,
|
|
270
|
+ position: "top", // 展示在柱子的上方
|
|
271
|
+ color: "#333"
|
|
272
|
+ }
|
262
|
273
|
}
|
263
|
274
|
]
|
264
|
275
|
}
|