fix: 学习强国修改最大值

This commit is contained in:
cjp 2023-10-20 13:54:21 +08:00
parent 955d5e1418
commit b74cc54a43

View File

@ -29,7 +29,7 @@ const airTypeData = ref([18249, 17688, 16119, 13161]);
const option = ref(null as any); const option = ref(null as any);
function initOption() { function initOption() {
// const totalValue = airTypeData.value.reduce((acc, curr) => acc + curr, 0); const totalValue = airTypeData.value.reduce((acc, curr) => acc + curr, 0);
option.value = { option.value = {
grid: { grid: {
left: "5%", left: "5%",
@ -42,7 +42,7 @@ function initOption() {
xAxis: { xAxis: {
show: false, show: false,
type: "value", type: "value",
max: 100 max: totalValue
}, },
yAxis: [ yAxis: [
{ {