This commit is contained in:
duanxiaohai 2024-04-16 10:33:50 +08:00
parent c1d211c3c1
commit 5097119c70
2 changed files with 43 additions and 34 deletions

View File

@ -1,7 +1,7 @@
<template>
<div
ref="chart"
style="width: 490px; height: calc(100% - 46px); min-height: 150px"
style="width: 100%; height: calc(100% - 46px); min-height: 150px"
></div>
</template>
@ -36,38 +36,38 @@ let option = {
containLabel: true,
color: "#ffffff",
},
dataZoom: [
{
show: zoomShow,
type: "inside",
startValue: 0,
endValue: 2,
minValueSpan: 2,
maxValueSpan: 2,
yAxisIndex: [0],
zoomOnMouseWheel: false, //
moveOnMouseWheel: true, //
moveOnMouseMove: true, //
},
{
show: zoomShow,
type: "slider",
realtime: true,
startValue: 0,
endValue: 2,
width: "3.5",
height: "80%",
yAxisIndex: [0], // y
fillerColor: "rgba(154, 181, 215, 1)", //
borderColor: "rgba(17, 100, 210, 0.12)",
backgroundColor: "#cfcfcf", //
handleSize: 0, //
showDataShadow: false, // auto
showDetail: false, //
top: "1%",
right: "5",
},
],
// dataZoom: [
// {
// show: zoomShow,
// type: "inside",
// startValue: 0,
// endValue: 2,
// minValueSpan: 2,
// maxValueSpan: 2,
// yAxisIndex: [0],
// zoomOnMouseWheel: false, //
// moveOnMouseWheel: true, //
// moveOnMouseMove: true, //
// },
// {
// show: zoomShow,
// type: "slider",
// realtime: true,
// startValue: 0,
// endValue: 2,
// width: "3.5",
// height: "80%",
// yAxisIndex: [0], // y
// fillerColor: "rgba(154, 181, 215, 1)", //
// borderColor: "rgba(17, 100, 210, 0.12)",
// backgroundColor: "#cfcfcf", //
// handleSize: 0, //
// showDataShadow: false, // auto
// showDetail: false, //
// top: "1%",
// right: "5",
// },
// ],
calculable: true,
color: "rgba(0, 252, 255, 1)",
// label: {

View File

@ -112,7 +112,7 @@
<!-- </div> -->
</div>
</div>
<div class="displayFlex center_bg">
<div class="displayFlex right_bg">
<div class="flex1">
<div class="yd_title mechanism"></div>
<div class="history">
@ -370,6 +370,15 @@ const change = (name, index) => {
background-repeat: no-repeat;
background-size: 100% 100%;
}
.right_bg {
width: 642px;
box-sizing: border-box;
padding-left: 10px;
margin-right: 28px;
background-image: url(@/assets/images/right_bg.png);
background-repeat: no-repeat;
background-size: 100% 100%;
}
.basicInformation {
display: flex;
flex-direction: row;