修改界面

master
夜笙歌 4 years ago
parent f4461e3809
commit d5fdd43862

@ -138,8 +138,7 @@ const horizontalRoundedBarChartWithBackground = function (data, id) {
$(window).resize(charts.resize);
}
const horizontalRoundedBarChartWithBackgroundTwo = function (data, id) {
let time = () => {
}
let time =() =>{}
clearInterval(time)
let charts = echarts.init(id);
if (!data) {
@ -254,8 +253,7 @@ const horizontalRoundedBarChartWithBackgroundTwo = function (data, id) {
})
let step = 1 / (data.yNameOne.length / 9) * 100
time = () => {
setInterval(() => {
time = setInterval(() => {
option.dataZoom[0].end += step
option.dataZoom[0].start += step
if (option.dataZoom[0].start >= 100) {
@ -268,8 +266,7 @@ const horizontalRoundedBarChartWithBackgroundTwo = function (data, id) {
}
charts.setOption(option);
}, 6000)
}
time()
// time()
}
charts.setOption(option);
$(window).resize(charts.resize);

Loading…
Cancel
Save