fix: 学习强国修改最大值
This commit is contained in:
parent
955d5e1418
commit
b74cc54a43
@ -29,7 +29,7 @@ const airTypeData = ref([18249, 17688, 16119, 13161]);
|
||||
const option = ref(null as any);
|
||||
|
||||
function initOption() {
|
||||
// const totalValue = airTypeData.value.reduce((acc, curr) => acc + curr, 0);
|
||||
const totalValue = airTypeData.value.reduce((acc, curr) => acc + curr, 0);
|
||||
option.value = {
|
||||
grid: {
|
||||
left: "5%",
|
||||
@ -42,7 +42,7 @@ function initOption() {
|
||||
xAxis: {
|
||||
show: false,
|
||||
type: "value",
|
||||
max: 100
|
||||
max: totalValue
|
||||
},
|
||||
yAxis: [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user