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);
|
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: [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user