
//option配置项option = { angleAxis: { //极坐标系的角度轴 axisLine: { show: false //是否显示坐标轴轴线 }, axisLabel: { show: false //是否显示刻度标签 }, splitLine: { show: false //是否显示分隔线 }, axisTick: { show: false //是否显示坐标轴刻度 }, min: 0, //最小值 max: 200, //最大值---根据数据设置 startAngle: 180 //开始角度 }, radiusAxis: { //极坐标系的径向轴 type: 'category', axisLine: { show: false }, axisTick: { show: false }, axisLabel: { show: false }, z: 10 }, polar: { radius: 230 //极坐标的外半径值 }, series: [ { type: 'bar', data: [80], //数据 coordinateSystem: 'polar', //使用极坐标系 barMaxWidth: 16, z: 2, //设置层级 roundCap: true, //环形柱两侧是否使用圆弧效果(右,下,左,上) color: new echarts.graphic.LinearGradient(1, 0, 0, 1, [ { offset: 0, color: '#00B4FF' }, { offset: 1, color: '#0685F5' } ]), //设置颜色渐变 barGap: '-100%' //设置柱子重叠 }, { type: 'bar', data: [100], //如果与max值相同,则是一个封闭的圆环 z: 0, silent: true, //不响应鼠标事件,默认为false响应鼠标事件 coordinateSystem: 'polar', barMaxWidth: 16, roundCap: true, color: '#1E2534', barGap: '-100%' } ]};