echarts仪表盘背景颜色渐变

option = {
     tooltip : {
         formatter: "{a} 
{b} : {c}%"
     },
     toolbox: {
         feature: {
             restore: {},
             saveAsImage: {}
         }
     },
     series: [
         {
             name: '业务指标',
             type: 'gauge',
             detail: {formatter:'{value}%'},
             data: [{value: 50, name: '完成率'}],
              axisLine: {
                 show: true,
                 lineStyle: {
                   color: [
                     [1,new echarts.graphic.LinearGradient(0, 0, 1, 0, [
                       {
                         offset: 0.1,
                         color: "#FFC600"
                       },
                       {
                         offset: 0.6,
                         color: "#30D27C"
                       },
                       {
                         offset: 1,
                         color: "#0B95FF"
                       }
                     ])
                   ]
                 ]
             }          }     } ]
 };

echarts仪表盘背景颜色渐变,offset设置偏移量

图例