You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/06/17 12:25:27 UTC

[GitHub] [incubator-echarts] confirmTing commented on issue #12817: 自定义雷达图 legend icon color

confirmTing commented on issue #12817:
URL: https://github.com/apache/incubator-echarts/issues/12817#issuecomment-645342177


   my option
   
   ```
   {
     "color": [
       "rgba(136,98,255,1)",
       "rgba(255,140,0,1)",
       "rgba(51,137,255,1)"
     ],
     "legend": {
       "left": 30,
       "textStyle": {
         "color": "#666"
       },
       "data": [
         {
           "name": "张三",
           "icon": "circle"
         },
         {
           "name": "李四",
           "icon": "circle"
         },
         {
           "name": "王五",
           "icon": "circle"
         }
       ]
     },
     "tooltip": {
       "show": false,
       "trigger": "item",
       "backgroundColor": "#fff",
       "borderColor": "#eee",
       "padding": 16,
       "borderWidth": 1,
       "extraCssText": "box-shadow:0px 4px 10px 0px rgba(0,0,0,0.08);",
       "textStyle": {
         "color": "#666"
       }
     },
     "radar": {
       "indicator": [
         {
           "name": "求实进取精神",
           "max": 9.6
         },
         {
           "name": "演绎思维",
           "max": 9.6
         },
         {
           "name": "归纳思维",
           "max": 9.6
         },
         {
           "name": "服务精神",
           "max": 9.6
         },
         {
           "name": "人才培养能力",
           "max": 9.6
         },
         {
           "name": "监控能力",
           "max": 9.6
         },
         {
           "name": "证实正直",
           "max": 9.6
         },
         {
           "name": "搜集信息",
           "max": 9.6
         }
       ],
       "radius": "60%",
       "shape": "circle",
       "name": {
         "textStyle": {
           "color": "#72ACD1"
         }
       },
       "splitArea": {
         "areaStyle": {
           "color": [
             "rgba(255, 255, 255, 1)"
           ]
         }
       },
       "axisLine": {
         "lineStyle": {
           "color": "rgba(221, 221, 221, 1)"
         }
       },
       "splitLine": {
         "lineStyle": {
           "type": "dashed",
           "color": "rgba(238, 238, 238, 1)"
         }
       }
     },
     "series": [
       {
         "name": "雷达图",
         "type": "radar",
         "emphasis": {
           "lineStyle": {
             "width": 2
           }
         },
         "data": [
           {
             "symbol": "circle",
             "areaStyle": {},
             "value": [
               4,
               8,
               8,
               7,
               4,
               7,
               8,
               3
             ],
             "name": "张三"
           },
           {
             "symbol": "circle",
             "areaStyle": {},
             "value": [
               6,
               3,
               4,
               5,
               4,
               6,
               5,
               8
             ],
             "name": "李四"
           },
           {
             "symbol": "circle",
             "areaStyle": {},
             "value": [
               6,
               7,
               6,
               5,
               3,
               8,
               7,
               5
             ],
             "name": "王五"
           }
         ],
         "color": [
           {
             "type": "linear",
             "x": 0,
             "y": 1,
             "x2": 0,
             "y2": 0,
             "colorStops": [
               {
                 "offset": 0,
                 "color": "rgba(80, 51, 255, 0.4)"
               },
               {
                 "offset": 1,
                 "color": "rgba(148, 89, 255, 0.4)"
               }
             ],
             "global": false
           },
           {
             "type": "linear",
             "x": 0,
             "y": 1,
             "x2": 0,
             "y2": 0,
             "colorStops": [
               {
                 "offset": 0,
                 "color": "rgba(254, 128, 38, 0.4)"
               },
               {
                 "offset": 1,
                 "color": "rgba(255, 200, 38, 0.4)"
               }
             ],
             "global": false
           },
           {
             "type": "linear",
             "x": 0,
             "y": 1,
             "x2": 0,
             "y2": 0,
             "colorStops": [
               {
                 "offset": 0,
                 "color": "rgba(77, 157, 255, 0.4)"
               },
               {
                 "offset": 1,
                 "color": "rgba(64, 137, 255, 0.4)"
               }
             ],
             "global": false
           }
         ]
       }
     ]
   }
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org