option = { yAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, xAxis: { type: 'value' }, series: [ { data: [120, 200, 150, 80, 70, 110, 130], type: 'bar', itemStyle:{ borderRadius:20, }, showBackground: true, backgroundStyle: { color: 'red', borderRadius:20, } } ] };
Echarts 设置柱状图固定背景
14 min read