partical commented on issue #10766: pie/funnel legend can use visualMap color.
URL: 
https://github.com/apache/incubator-echarts/pull/10766#issuecomment-506358621
 
 
   option like this:
   `option = {
     "dataset": [
       {
         "source": [
           [
             "Mark3",
             "Mark3_desc",
             "Role4",
             "Role4_desc"
           ],
           [
             "01",
             "高档",
             61278,
             "61278.00"
           ],
           [
             "03",
             "中档",
             108814,
             "108814.00"
           ],
           [
             "04",
             "低档",
             242664,
             "242664.00"
           ]
         ]
       }
     ],
     "series": [
       {
         "type": "pie",
         "datasetIndex": 0,
         "name": "销售数量",
         "encode": {
           "value": "Role4",
           "itemName": "Mark3_desc"
         }
       }
     ],
     "visualMap": [
       {
         "show": false,
         "inRange": {
           "color": [
             "#6EB9FF",
             "#99DFA2",
             "#FDAD29"
           ]
         },
         "dataDefIndex": 0,
         "field": "FA_XS_MONTH.JGDC",
         "type": "piecewise",
         "categories": [
           "高档",
           "中档",
           "低档"
         ],
         "dimension": "Mark3_desc",
         "seriesIndex": [
           0
         ]
       }
     ],
     "legend": {
       "show": true
     }
   };`

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to