This commit is contained in:
姚宇浩 2024-04-17 16:03:20 +08:00
parent 8d3645048a
commit a1a454ef8c
6 changed files with 16 additions and 14 deletions

View File

@ -1,7 +1,7 @@
<template>
<div
ref="chart"
style="width: 100%; height: calc(100% - 76px); min-height: 205px"
style="width: 100%; height: calc(100% - 46px); min-height: 215px"
></div>
</template>
@ -27,7 +27,7 @@ let option = {
},
grid: {
top: "20%",
top: "10%",
left: "1%",
right: "10%",
bottom: "0%",
@ -41,7 +41,7 @@ let option = {
formatter: function (params) {
var str = ""; //
var paramsLen = params.length; //
var len = 4; //
var len = 5; //
var rowNumber = Math.ceil(paramsLen / len); //
if (paramsLen > len) {
//len
@ -67,7 +67,7 @@ let option = {
textStyle: {
color: "#ccc",
},
// rotate: 60,
rotate: 30,
},
data: data1,
},

View File

@ -11,7 +11,6 @@ const chart = ref(); // 创建DOM引用
const datas = {
value: 92.96,
text: "留 守 儿 童"
}
let option = {

View File

@ -1,7 +1,7 @@
<template>
<div
ref="chart"
style="width: 100%; height: calc(100% - 66px); min-height: 320px"
style="width: 100%; height: calc(100% - 60px); min-height: 320px"
></div>
</template>
@ -41,7 +41,7 @@ let option = {
formatter: function (params) {
var str = ""; //
var paramsLen = params.length; //
var len = 5; //
var len = 6; //
var rowNumber = Math.ceil(paramsLen / len); //
if (paramsLen > len) {
//len
@ -80,7 +80,7 @@ let option = {
splitLine: {
show: true,
lineStyle: {
color: "rgba(226, 226, 226, 0.3)",
color: "rgba(226, 226, 226, 0.2)",
width: 1,
},
},

View File

@ -1,5 +1,5 @@
<template>
<div ref="chart" style="width: 100%; height: calc(100% - 46px);min-height:155px;"></div>
<div ref="chart" style="width: 100%; height: calc(100% - 46px);min-height:165px;"></div>
</template>
<script setup >
@ -15,7 +15,7 @@ let option = {
formatter: "{b0}<br />{a0}:{c0} <br />{a1}:{c1} ",
},
legend: {
top: "8%",
top: "3%",
right: "11%",
textStyle: {
fontSize: 12,
@ -23,6 +23,7 @@ let option = {
},
},
grid: {
top:'23%',
left: "1%",
right: "10%",
bottom: "0%",

View File

@ -1,5 +1,5 @@
<template>
<div ref="chart" style="width: 100%; height: calc(100% - 46px);min-height:155px;"></div>
<div ref="chart" style="width: 100%; height: calc(100% - 46px);min-height:165px;"></div>
</template>
<script setup >
@ -17,7 +17,7 @@ let option = {
},
legend: {
data: ["职工医疗保险金额", "城乡医疗保险金额"],
top: "8%",
top: "3%",
right: "11%",
textStyle: {
fontSize: 12,
@ -25,6 +25,7 @@ let option = {
},
},
grid: {
top:'23%',
left: "1%",
right: "10%",
bottom: "3%",

View File

@ -654,6 +654,7 @@ const change = (name, index) => {
}
}
.table {
margin-top: 10px;
width: 95%;
height: 200px;
height: calc(100% - 75px);
@ -670,8 +671,8 @@ const change = (name, index) => {
}
/* 滚动条整体部分 */
.table::-webkit-scrollbar {
width: 8px;
height: 10px;
width: 5px;
// height: 10px;
}
/* 滚动槽 */
.table::-webkit-scrollbar-track {