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 2022/11/07 19:05:26 UTC

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

jdgme commented on issue #15585:
URL: https://github.com/apache/echarts/issues/15585#issuecomment-1306059279

   This is still an issue. If you are dynamically changing the number of elements in options.series, and the new options.series you are merging in has fewer elements than are currently in the chart instance's series, the series may not be shown in the chart, but it is still shown in the legend. You can format the legend to not have a name for these series elements, but the accompanying legend icons (line, circle, etc.) still are shown.
   
   The option of using setOption(options, true) to reset the series can work, except that it loses the current magic type (bar or line, stacked or unstacked). If you set new options to match these values, the restore toolbox action no longer restores to the original state of the chart, but to the merged options type and stack used to emulate the magic type state that is whiped out by the setOption necessary to fix the issue of not being able to remove series elements.
   
   I have yet to successfully use the on event capture of 'restore' to override the charts restore to set it back to the original type and stack. But again, all of this is a lot of extra steps just because you cannot remove an element from the series.
   
   _**Please enable the removal of series elements.**_


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