console
const myCharts = echarts.init(document.getElementById('container'))
const option = {
animation: true,
animationDuration: arg => {
return (arg + 1) * 1000
},
animationEasing: 'bounceOut',
animationThreshold: 3,
xAxis: {
type: 'category',
data: ['小明', '小红', '小王']
},
yAxis: {
type: 'value'
},
series: [
{
name: '语文',
type: 'bar',
data: [70, 92, 87]
}
]
}
myCharts.setOption(option)
<div id="container"></div>
#container {
width: 600px;
height: 400px;
background: linear-gradient(135deg,#fce38a,#f38181);
}