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 2021/08/23 12:07:40 UTC

[GitHub] [echarts] Rushan4eg opened a new issue #15585: Add feature show/hide Series

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: commits-unsubscribe@echarts.apache.org

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


[GitHub] [echarts] 100pah commented on issue #15585: Add feature show/hide Series

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #15585:
URL: https://github.com/apache/echarts/issues/15585#issuecomment-903973191


   If the original requirement is:
   
   > We need to hide or disable those charts with no data.
   
   If there is no data, the series will not be displayed automatically.
   


-- 
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: commits-unsubscribe@echarts.apache.org

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


[GitHub] [echarts] echarts-bot[bot] commented on issue #15585: Add feature show/hide Series

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15585:
URL: https://github.com/apache/echarts/issues/15585#issuecomment-903705262


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe to our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


-- 
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: commits-unsubscribe@echarts.apache.org

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


[GitHub] [echarts] Johnz86 commented on issue #15585: Add feature show/hide Series

Posted by GitBox <gi...@apache.org>.
Johnz86 commented on issue #15585:
URL: https://github.com/apache/echarts/issues/15585#issuecomment-987718018


   I would like to have an option to define an invisible series element. 
   Like this 
   ```
   series: [{type:'hidden', data: [0,0] }]
   ```
   or 
   ```
   series: [{type:'line', show: false }]
   ```
   This would allow to hide certain data point from the graph. 
   For example legend component can be displayed for item that is not visible in graph.
   If I understand it correctly, it is required that each legend item has at least one corresponding element in series.
   


-- 
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: commits-unsubscribe@echarts.apache.org

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


[GitHub] [echarts] Ovilia commented on issue #15585: Add feature show/hide Series

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #15585:
URL: https://github.com/apache/echarts/issues/15585#issuecomment-907972440


   @Rushan4eg According to ECharts's mechanism, the suggested way to do this is to pass the series to display to `setOption(option, true)`, you may keep a variabled of all series and filter each time which ones to display.


-- 
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: commits-unsubscribe@echarts.apache.org

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


[GitHub] [echarts] ahmednofal commented on issue #15585: Add feature show/hide Series

Posted by GitBox <gi...@apache.org>.
ahmednofal commented on issue #15585:
URL: https://github.com/apache/echarts/issues/15585#issuecomment-1019381250


   Are there any updates to this issue ? Would really be awesome to be able to disable an entry in the series by default ( while the user can enable them via the legend if they wish to )
   The exact api and the behavior would be like this https://stackoverflow.com/a/16319869


-- 
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: commits-unsubscribe@echarts.apache.org

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


[GitHub] [echarts] creadone commented on issue #15585: Add feature show/hide Series

Posted by GitBox <gi...@apache.org>.
creadone commented on issue #15585:
URL: https://github.com/apache/echarts/issues/15585#issuecomment-997475196


   @Ovilia, @100pah, it's good feature also in case when you trying to separate chart into two parts:
   
   * Main chart with series
   * DataZoom
   
   See example: https://jsfiddle.net/admwo0kx/
   
   That is, now you need to hide the series in DataZoom part by transparent color. May be it can be solved with [echarts.connect](https://echarts.apache.org/en/api.html#echarts.connect) but it didn't work for me.
   


-- 
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: commits-unsubscribe@echarts.apache.org

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


[GitHub] [echarts] Rushan4eg commented on issue #15585: Add feature show/hide Series

Posted by GitBox <gi...@apache.org>.
Rushan4eg commented on issue #15585:
URL: https://github.com/apache/echarts/issues/15585#issuecomment-904168016


   Hey!
   
   In our case, we are providing dataset and encode to multiple series and we need to be able to show/hide specific series, but keep all hidden series configurations, parameters, encode etc.
   


-- 
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: commits-unsubscribe@echarts.apache.org

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


[GitHub] [echarts] creadone removed a comment on issue #15585: Add feature show/hide Series

Posted by GitBox <gi...@apache.org>.
creadone removed a comment on issue #15585:
URL: https://github.com/apache/echarts/issues/15585#issuecomment-997475196


   @Ovilia, @100pah, it's good feature also in case when you trying to separate chart into two parts:
   
   * Main chart with series
   * DataZoom
   
   See example: https://jsfiddle.net/admwo0kx/
   
   That is, now you need to hide the series in DataZoom part by transparent color. May be it can be solved with [echarts.connect](https://echarts.apache.org/en/api.html#echarts.connect) but it didn't work for me.
   


-- 
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: commits-unsubscribe@echarts.apache.org

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