fix: bug#15649
This commit is contained in:
parent
7c978f31a7
commit
4213e55996
|
@ -430,6 +430,9 @@ const selectChange = () => {
|
||||||
xData.push(item.data.timeString);
|
xData.push(item.data.timeString);
|
||||||
sData.push(item.data.value);
|
sData.push(item.data.value);
|
||||||
});
|
});
|
||||||
|
const maxY = sData.sort((a,b)=>{
|
||||||
|
return b-a
|
||||||
|
})[0]
|
||||||
alarmStatisticsOption.value = {
|
alarmStatisticsOption.value = {
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
|
@ -448,7 +451,7 @@ const selectChange = () => {
|
||||||
grid: {
|
grid: {
|
||||||
top: '2%',
|
top: '2%',
|
||||||
bottom: '5%',
|
bottom: '5%',
|
||||||
left: '24px',
|
left: maxY > 10000 ? '50px' : '40px',
|
||||||
right: '48px',
|
right: '48px',
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
|
|
Loading…
Reference in New Issue