|
|
@ -5,7 +5,7 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import echarts from 'echarts';
|
|
|
|
import echarts from 'echarts';
|
|
|
|
require('echarts/theme/macarons'); // echarts 主题
|
|
|
|
require('echarts/theme/macarons'); // echarts 主题
|
|
|
|
|
|
|
|
const animationDuration = 3000;
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
className: {
|
|
|
|
className: {
|
|
|
@ -68,19 +68,22 @@
|
|
|
|
type: 'bar',
|
|
|
|
type: 'bar',
|
|
|
|
stack: 'vistors',
|
|
|
|
stack: 'vistors',
|
|
|
|
barWidth: '60%',
|
|
|
|
barWidth: '60%',
|
|
|
|
data: [79, 52, 200, 334, 390, 330, 220]
|
|
|
|
data: [79, 52, 200, 334, 390, 330, 220],
|
|
|
|
|
|
|
|
animationDuration
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
name: 'pageB',
|
|
|
|
name: 'pageB',
|
|
|
|
type: 'bar',
|
|
|
|
type: 'bar',
|
|
|
|
stack: 'vistors',
|
|
|
|
stack: 'vistors',
|
|
|
|
barWidth: '60%',
|
|
|
|
barWidth: '60%',
|
|
|
|
data: [80, 52, 200, 334, 390, 330, 220]
|
|
|
|
data: [80, 52, 200, 334, 390, 330, 220],
|
|
|
|
|
|
|
|
animationDuration
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
name: 'pageC',
|
|
|
|
name: 'pageC',
|
|
|
|
type: 'bar',
|
|
|
|
type: 'bar',
|
|
|
|
stack: 'vistors',
|
|
|
|
stack: 'vistors',
|
|
|
|
barWidth: '60%',
|
|
|
|
barWidth: '60%',
|
|
|
|
data: [30, 52, 200, 334, 390, 330, 220]
|
|
|
|
data: [30, 52, 200, 334, 390, 330, 220],
|
|
|
|
|
|
|
|
animationDuration
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|