MINDoSOFT opened a new issue #10184: Add series show option
URL: https://github.com/apache/incubator-echarts/issues/10184
 
 
   ### What problem does this feature solve?
   Sometimes there are some series that I want to hide from the chart. They 
should not appear on the legend or in the grid of the chart.
   
   This would allow developers to enable/disable series on the client side.
   
   ### What does the proposed API look like?
   Add a boolean property show in the series options 
   e.g. series[i]-bar.show : false
   the default value would be true as is the current functionality.
   
   In the following part of the configuration the series "Zero" would be hidden 
from the legend and the grid of the chart.
   
   ```
       "series" : [
         {
           "show" : false,
           "legendHoverLink" : true,
           "yAxisIndex" : 0,
           "name" : "Zero",
           "type" : "scatter",
           "itemStyle" : {
             "normal" : {
               "color" : "#6b7268"
             }
           },
           "symbol" : "circle",
           "showAllSymbol" : false,
           "data" : [ ]
         },
   ```
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

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