feat: 更换背景图片

This commit is contained in:
fyy 2025-07-20 17:40:14 +08:00
parent 34fa7a1c1a
commit 5ac8aca6df
3 changed files with 16 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

View File

@ -168,14 +168,19 @@ const updateTime = () => {
const initBarChart = () => { const initBarChart = () => {
if (!barChart.value) return if (!barChart.value) return
const chart = echarts.init(barChart.value) const myChart = echarts.init(barChart.value);
const option = getThreeDBarOption({ myChart.setOption({
xData: ['A区', 'B区', 'C区', 'D区'], tooltip: {},
yData: [320, 452, 688, 400] xAxis: { data: ['A', 'B', 'C', 'D'] },
}) yAxis: {},
chart.setOption(option) series: [
barChartInstance = chart {
addChartToResizeManager(chart) name: '销量',
type: 'bar',
data: [5, 20, 36, 10, 10, 20],
},
],
});
} }
// //
@ -601,6 +606,9 @@ onBeforeUnmount(() => {
min-height: unset; min-height: unset;
margin: 0 auto; margin: 0 auto;
} }
.bar-chart{
}
} }
.second{ .second{
height: 12rem; height: 12rem;