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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
<template> <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> </template>
<script setup > <script setup >
@ -15,7 +15,7 @@ let option = {
formatter: "{b0}<br />{a0}:{c0} <br />{a1}:{c1} ", formatter: "{b0}<br />{a0}:{c0} <br />{a1}:{c1} ",
}, },
legend: { legend: {
top: "8%", top: "3%",
right: "11%", right: "11%",
textStyle: { textStyle: {
fontSize: 12, fontSize: 12,
@ -23,6 +23,7 @@ let option = {
}, },
}, },
grid: { grid: {
top:'23%',
left: "1%", left: "1%",
right: "10%", right: "10%",
bottom: "0%", bottom: "0%",

View File

@ -1,5 +1,5 @@
<template> <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> </template>
<script setup > <script setup >
@ -17,7 +17,7 @@ let option = {
}, },
legend: { legend: {
data: ["职工医疗保险金额", "城乡医疗保险金额"], data: ["职工医疗保险金额", "城乡医疗保险金额"],
top: "8%", top: "3%",
right: "11%", right: "11%",
textStyle: { textStyle: {
fontSize: 12, fontSize: 12,
@ -25,6 +25,7 @@ let option = {
}, },
}, },
grid: { grid: {
top:'23%',
left: "1%", left: "1%",
right: "10%", right: "10%",
bottom: "3%", bottom: "3%",

View File

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