Rushan4eg opened a new issue #15585:
URL: https://github.com/apache/echarts/issues/15585


   ### What problem does this feature solve?
   There are mutiple charts on the page, however, some of them have no data. We 
need to hide or disable those charts with no data.
   
   ### What does the proposed API look like?
   Would be extremely useful to have in options.series to hide or show specific 
series `WITH series.visible = true/false`. For example, we have 5 series, but 
we don't want to show one of them. 
   
   ```
   option = {
       xAxis: {
           type: 'category',
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           data: [150, 230, 224, 218, 135, 147, 260],
           visible: false,
           type: 'line'
       }]
   };
   ```
   
   Also, would be useful to have option to hide series if there is no data in 
the series.
   
   `series.displayWhenNoData= true/false`
   
   Waiting and ready to help!
   
   <!-- 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to