|
@@ -18,7 +18,7 @@
|
|
|
<div :style="{ height: '20px', width: `${lengY}px`, color: '#fff' }" v-for="(ite, ind) in 15" :key="ind">{{ ind
|
|
|
== 14 ? maxX : '' }}</div>
|
|
|
</div>
|
|
|
- <div class="line-AB" :style="{ width: 'calc(100% - 15px)', height: 'calc(100% - 10px)' }">
|
|
|
+ <div class="line-AB" :style="{ width: 'calc(100% - 10px)', height: 'calc(100% - 10px)' }">
|
|
|
<canvas id="myCanvas" :width="canvasSize.width" :height="canvasSize.height"></canvas>
|
|
|
</div>
|
|
|
<!-- <div class="line-legend">
|
|
@@ -50,7 +50,7 @@ let props = defineProps({
|
|
|
canvasSize: {
|
|
|
type: Object,
|
|
|
default: () => {
|
|
|
- return { width: 364, height: 245 };
|
|
|
+ return { width: 348, height: 245 };
|
|
|
},
|
|
|
},
|
|
|
});
|
|
@@ -416,20 +416,21 @@ onMounted(() => {
|
|
|
left: 50%;
|
|
|
top: 20px;
|
|
|
width: 75%;
|
|
|
- height: 25px;
|
|
|
+ height: 20px;
|
|
|
transform: translate(-50%, 0);
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
|
|
|
.legend-box {
|
|
|
display: flex;
|
|
|
- flex: 1;
|
|
|
+
|
|
|
height: 100%;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
font-size: 12px;
|
|
|
|
|
|
&:nth-child(1) {
|
|
|
+ flex: 1;
|
|
|
.legend-icon {
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
@@ -439,6 +440,7 @@ onMounted(() => {
|
|
|
}
|
|
|
|
|
|
&:nth-child(2) {
|
|
|
+ flex: 1.5;
|
|
|
.legend-icon {
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
@@ -448,6 +450,7 @@ onMounted(() => {
|
|
|
}
|
|
|
|
|
|
&:nth-child(3) {
|
|
|
+ flex:1;
|
|
|
.legend-icon {
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
@@ -457,6 +460,7 @@ onMounted(() => {
|
|
|
}
|
|
|
|
|
|
&:nth-child(4) {
|
|
|
+ flex:1;
|
|
|
.legend-icon {
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
@@ -472,11 +476,11 @@ onMounted(() => {
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
|
top: 50%;
|
|
|
- width: 80%;
|
|
|
+ width: 90%;
|
|
|
height: 80%;
|
|
|
border-left: 1px solid #006c9d;
|
|
|
border-bottom: 1px solid #006c9d;
|
|
|
- transform: translate(-50%, -46%);
|
|
|
+ transform: translate(-45%, -46%);
|
|
|
|
|
|
.coord-lineY {
|
|
|
position: absolute;
|