Ovilia commented on issue #9517: add legend.disabled
URL: 
https://github.com/apache/incubator-echarts/pull/9517#issuecomment-516360134
 
 
   @cuijian-dexter 我用这个例子测的,怎么好像没效果?(感觉这样的事已经不是第一次了……
   
   ```
   option = {
                   "yAxis": [{
                       "type": "value"
                   }],
                   "xAxis": [{
                       "data": ["Amaretto", "Caffe Mocha", "Columbian", 
"Darjeeling", "Decaf Irish Cream", "Green Tea"],
                       "type": "category"
                   }],
                   "legend": {
                       "data": ["cb"],
                       disabled: {
                           cb: true
                       }
                   },
                   "series": [{
                       "data": [{
                           "name": "Amaretto",
                           "itemStyle": {},
                           "value": 89
                       }, {
                           "name": "Caffe Mocha",
                           "itemStyle": {},
                           "value": 191
                       }, {
                           "name": "Columbian",
                           "itemStyle": {},
                           "value": 83
                       }, {
                           "name": "Darjeeling",
                           "itemStyle": {},
                           "value": 45
                       }, {
                           "name": "Decaf Irish Cream",
                           "itemStyle": {},
                           "value": 95
                       }, {
                           "name": "Green Tea",
                           "itemStyle": {},
                           "value": 102
                       }],
                       "name": "cb",
                       "type": "bar"
                   }],
                   "color": ["#c23531", "#2f4554", "#61a0a8", "#d48265", 
"#91c7ae", "#749f83", "#ca8622", "#bda29a", "#6e7074", "#546570", "#c4ccd3"]
               };
   ```

----------------------------------------------------------------
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