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