diff --git a/web/src/views/dashboard/Dashboard.vue b/web/src/views/dashboard/Dashboard.vue index e160247..d470441 100644 --- a/web/src/views/dashboard/Dashboard.vue +++ b/web/src/views/dashboard/Dashboard.vue @@ -110,7 +110,7 @@ const renderLineChart = () => { ], chart: { type: 'line', - height: 240, + height: 300, toolbar: { show: false }, background: 'transparent', animations: { @@ -221,7 +221,7 @@ const renderLineChart = () => { ` } }, - responsive: [{ breakpoint: 768, options: { chart: { height: 200 }, legend: { position: 'bottom', offsetY: 0 } } }] + responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'bottom', offsetY: 0 } } }] } lineChart = new ApexCharts(container, options) lineChart.render() @@ -247,7 +247,7 @@ const renderPieChart = () => { series: taskStats.value.map(item => item.count), chart: { type: 'donut', - height: 200, + height: 260, toolbar: { show: false }, background: 'transparent', animations: { @@ -334,7 +334,7 @@ const renderPieChart = () => { style: { fontSize: '12px', fontFamily: 'Inter, sans-serif' }, y: { formatter: (val: number) => val + ' 次' } }, - responsive: [{ breakpoint: 768, options: { chart: { height: 200 }, legend: { position: 'bottom' } } }] + responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'bottom' } } }] } pieChart = new ApexCharts(container, options) pieChart.render() @@ -401,13 +401,13 @@ onUnmounted(() => {