报警分布圆盘标签说明省略,高度降低

This commit is contained in:
龚皓 2024-10-16 14:52:00 +08:00
parent 9b1a251ded
commit 1b6a66302f
1 changed files with 12 additions and 4 deletions

View File

@ -44,7 +44,7 @@ const fetchTypeMapping = async (token) => {
const fetchAndProcessEvents = async (token) => { const fetchAndProcessEvents = async (token) => {
try { try {
let currentPage = 1; let currentPage = 1;
const pageSize = 2000; // 2000 const pageSize = 1000; // 2000
let allEvents = []; let allEvents = [];
// //
@ -110,6 +110,7 @@ const initChart = () => {
}, },
itemGap: 20, itemGap: 20,
data: seriesData.value.map(item => item.name), data: seriesData.value.map(item => item.name),
show : true
}, },
series: [ series: [
{ {
@ -118,6 +119,7 @@ const initChart = () => {
radius: '50%', radius: '50%',
center: ['50%', '150px'], center: ['50%', '150px'],
data: seriesData.value, data: seriesData.value,
data: [],
emphasis: { emphasis: {
itemStyle: { itemStyle: {
shadowBlur: 10, shadowBlur: 10,
@ -126,7 +128,7 @@ const initChart = () => {
} }
}, },
label: { label: {
show: true, show: false,
}, },
stillShowZeroSum: false, stillShowZeroSum: false,
} }
@ -171,15 +173,20 @@ onMounted(async () => {
<style scoped> <style scoped>
.stats-card { .stats-card {
background-color: #2a3f54; background-color: #304555;
/* background: linear-gradient(to top, rgba(16, 84, 194, 0.6), rgba(31, 48, 207, 0.7)); */
color: #fff; color: #fff;
border-radius: 8px; border-radius: 8px;
margin: 0;
padding: 0;
/* height: 100vh; */
} }
.stats-header { .stats-header {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
border-bottom: 1px solid #3a4b5c; border-bottom: 1px solid #3a4b5c;
padding-bottom: 10px;
} }
.stats-row { .stats-row {
@ -189,6 +196,7 @@ onMounted(async () => {
.chart { .chart {
width: 100%; width: 100%;
height: 445px; height: 380px;
/* height: 445px; */
} }
</style> </style>