中间的chart设置宽度

This commit is contained in:
chenjiancheng 2025-01-15 16:11:07 +08:00
parent 712c8abbbe
commit 7289f01132

View File

@ -199,7 +199,6 @@ const setBar = (serve) => {
datasetOption.xAxis.data = Xdata; datasetOption.xAxis.data = Xdata;
console.log('🚀 ~ Object.keys ~ Xdata:', Xdata); console.log('🚀 ~ Object.keys ~ Xdata:', Xdata);
datasetOption.series[0].data = yData; datasetOption.series[0].data = yData;
debugger;
myChart.setOption(datasetOption); myChart.setOption(datasetOption);
} }
}); });
@ -566,6 +565,7 @@ const renderEventChart = () => {
usageChart.setOption(usageOption); usageChart.setOption(usageOption);
}; };
onMounted(() => { onMounted(() => {
if (designStore.appThemeDetail.cssName == 'theme-blue') { if (designStore.appThemeDetail.cssName == 'theme-blue') {
datasetOption.color = ['rgba(0,98,217,0.3)']; datasetOption.color = ['rgba(0,98,217,0.3)'];
datasetOption.series[0].itemStyle.borderColor = 'rgba(0,98,217,1)'; datasetOption.series[0].itemStyle.borderColor = 'rgba(0,98,217,1)';
@ -605,7 +605,7 @@ onMounted(() => {
}, },
}) })
.then((res2) => { .then((res2) => {
// console.log('🚀 ~ res:', res2); console.log('🚀 ~ res:', res2);
serveCall.value = res2; serveCall.value = res2;
allCallService.value = res2.allCallService; allCallService.value = res2.allCallService;
algorithmService.value = res2.algorithmService; algorithmService.value = res2.algorithmService;
@ -1054,6 +1054,7 @@ function switchOption(index) {
} }
.assets-chart { .assets-chart {
// margin-top: -46px; // margin-top: -46px;
width: 560.5px;
height: 244px; height: 244px;
z-index: 2; z-index: 2;
} }