|
|
|
@ -138,6 +138,8 @@ const horizontalRoundedBarChartWithBackground = function (data, id) {
|
|
|
|
$(window).resize(charts.resize);
|
|
|
|
$(window).resize(charts.resize);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const horizontalRoundedBarChartWithBackgroundTwo = function (data, id) {
|
|
|
|
const horizontalRoundedBarChartWithBackgroundTwo = function (data, id) {
|
|
|
|
|
|
|
|
let time = () => {
|
|
|
|
|
|
|
|
}
|
|
|
|
let charts = echarts.init(id);
|
|
|
|
let charts = echarts.init(id);
|
|
|
|
if (!data) {
|
|
|
|
if (!data) {
|
|
|
|
data = {
|
|
|
|
data = {
|
|
|
|
@ -245,7 +247,7 @@ const horizontalRoundedBarChartWithBackgroundTwo = function (data, id) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
let step = 1 / (data.yNameOne.length / 9) * 100
|
|
|
|
let step = 1 / (data.yNameOne.length / 9) * 100
|
|
|
|
setInterval(() => {
|
|
|
|
time = setInterval(() => {
|
|
|
|
option.dataZoom[0].end += step
|
|
|
|
option.dataZoom[0].end += step
|
|
|
|
option.dataZoom[0].start += step
|
|
|
|
option.dataZoom[0].start += step
|
|
|
|
if (option.dataZoom[0].start >= 100) {
|
|
|
|
if (option.dataZoom[0].start >= 100) {
|
|
|
|
@ -258,6 +260,7 @@ const horizontalRoundedBarChartWithBackgroundTwo = function (data, id) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
charts.setOption(option);
|
|
|
|
charts.setOption(option);
|
|
|
|
}, 3000)
|
|
|
|
}, 3000)
|
|
|
|
|
|
|
|
time()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
charts.setOption(option);
|
|
|
|
charts.setOption(option);
|
|
|
|
$(window).resize(charts.resize);
|
|
|
|
$(window).resize(charts.resize);
|
|
|
|
@ -1583,6 +1586,14 @@ const singleVerticalBarChart = function (data, id,rotate=0) {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
label: {
|
|
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
|
|
position: "top",
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
color: "#fff",
|
|
|
|
|
|
|
|
fontSize: 0.75 * vw
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
data: data.yData,
|
|
|
|
data: data.yData,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -1593,6 +1604,8 @@ const singleVerticalBarChart = function (data, id,rotate=0) {
|
|
|
|
$(window).resize(charts.resize);
|
|
|
|
$(window).resize(charts.resize);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const singleVerticalBarChartTwo = function (data, id) {
|
|
|
|
const singleVerticalBarChartTwo = function (data, id) {
|
|
|
|
|
|
|
|
let time = () => {
|
|
|
|
|
|
|
|
}
|
|
|
|
let charts = echarts.init(id);
|
|
|
|
let charts = echarts.init(id);
|
|
|
|
if (!data) {
|
|
|
|
if (!data) {
|
|
|
|
data = {
|
|
|
|
data = {
|
|
|
|
@ -1740,7 +1753,7 @@ const singleVerticalBarChartTwo = function (data, id) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
let step = 1 / (data.xName.length / 11) * 100
|
|
|
|
let step = 1 / (data.xName.length / 11) * 100
|
|
|
|
setInterval(() => {
|
|
|
|
time = setInterval(() => {
|
|
|
|
option.dataZoom[0].end += step
|
|
|
|
option.dataZoom[0].end += step
|
|
|
|
option.dataZoom[0].start += step
|
|
|
|
option.dataZoom[0].start += step
|
|
|
|
if (option.dataZoom[0].start >= 100) {
|
|
|
|
if (option.dataZoom[0].start >= 100) {
|
|
|
|
@ -1753,6 +1766,7 @@ const singleVerticalBarChartTwo = function (data, id) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
charts.setOption(option);
|
|
|
|
charts.setOption(option);
|
|
|
|
}, 3000)
|
|
|
|
}, 3000)
|
|
|
|
|
|
|
|
time()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|