直方图取值及样式修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
5b4cc097bc
commit
641c2e6ade
|
|
@ -23,7 +23,7 @@
|
|||
<i class="el-icon-circle-close closeBtn" @click.stop="close"></i>
|
||||
</div>
|
||||
<div class="histogram">
|
||||
<div ref="chartContainer" style="width: 450px; height: 260px;" v-loading="loading"></div>
|
||||
<div ref="chartContainer" style="width: 450px; height: 220px;" v-loading="loading"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -194,6 +194,7 @@ export default {
|
|||
const option = {
|
||||
useUTC: true,
|
||||
title: {
|
||||
show: false,
|
||||
text: this.$t("trials:histogram:title:histogram"),
|
||||
textStyle: {
|
||||
color: "#fff"
|
||||
|
|
@ -203,6 +204,7 @@ export default {
|
|||
},
|
||||
color: this.colors,
|
||||
grid: {
|
||||
top: 0,
|
||||
left: 50,
|
||||
bottom: 80,
|
||||
right: 20
|
||||
|
|
@ -282,8 +284,11 @@ export default {
|
|||
}
|
||||
})
|
||||
Object.keys(obj).forEach(key => {
|
||||
if (key > -1020) {
|
||||
let arr = [key, obj[key]]
|
||||
seriesData.push(arr)
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
seriesData.sort((a, b) => a[0] - b[0])
|
||||
|
|
@ -1169,6 +1174,8 @@ export default {
|
|||
.el-dialog {
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
margin-top: 110px;
|
||||
left: 220px;
|
||||
z-index: 9999;
|
||||
width: 450px;
|
||||
text-align: center;
|
||||
|
|
|
|||
Loading…
Reference in New Issue