app.title = '堆叠条形图'; option = { tooltip : { trigger: 'axis', axisPointer : { // 坐标轴指示器,坐标轴触发有效 type : 'shadow' // 默认为直线,可选为:'line' | 'shadow' } }, legend: { data: [ '媒体词频分析',] }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, xAxis: { type: 'value' }, yAxis: { type: 'category', data: ['媒体','采访','证据','社会','记者','网络'] }, series: [ { name: '媒体词频分析', type: 'bar', stack: '总量', label: { normal: { show: true, position: 'insideRight' } }, data: [9, 8, 9, 7, 6, 6] }, ] };