option = { title: { text: '', subtext: '' }, xAxis: [{ type: 'category', data: [null,null], axisLabel: { rotate: 30, }, axisLine: { show: true }, }], yAxis: [{}], series: [{ name: "已完成分析", type: 'bar', data: [1, 2], barGap: '0', barCategoryGap: '10%', barMaxWidth: '50', markPoint: { symbol: 'pin', //标记类型 symbolSize: 40, //图形大小 itemStyle: { normal: { borderColor: '#ec635a', borderWidth: 1, // 标注边线线宽,单位px,默认为1 label: { show: true } } }, data: [{ value: "1", xAxis: null, yAxis: 1 }, { value: "2", xAxis: null, yAxis: 2 } ] } , itemStyle: { normal: { color: ['#ec635a', '#ed719e'] } } }, { name: "未完成分析", type: 'bar', data: [2, 3], barGap: '0', barCategoryGap: '10%', barMaxWidth: '50', markPoint: { symbol: 'pin', //标记类型 symbolSize: 40, //图形大小 itemStyle: { normal: { borderColor: '#ed719e', borderWidth: 1, // 标注边线线宽,单位px,默认为1 label: { show: true } } }, data: [{ value: "1", xAxis: null, yAxis: 1 }, { value: "2", xAxis: null, yAxis: 2 } ] } }] };