效果图:
上代码:
option = {
legend: {
data: ['pictorialBar', 'bar']
},
xAxis: {
data: ['symbolRepeat: true', 'symbolRepeat: false']
},
yAxis: {
splitLine: {show: false}
},
animationEasing: 'elasticOut',
series: [{
type: 'pictorialBar',
symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none'
data: [{
value: 29000,
symbolRepeat: true,
symbolSize: [40, 6]
}, {
value: 29000,
symbolSize: [50, '100%']
}]
}]
};