Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Although it's an odd thing for a user to want to do there is nothing to stop them toggling all series to not be shown. If they do this then the X axis gets confused - if all series are hidden it seems to not bother scanning the data source to try derive the X axis range & labels.
By way of example using one of your documentation examples if you click on all legend items to hide all series on this chart then the X axis just repeats "1970" several times.
The same happens multi-series column charts (non-stacked) e.g. this example with a category X axis the axis labels and grid lines completely vanish when you hide the last series via legend toggle.
I think it would be more expected behaviour from a user perspective with a stacked chart for the X axis to remain unchanged as series are hidden (i.e. derive the range & labels for the X axis as if no series were hidden by toggling the legend).
An alternative to changing the behaviour of how the X axis derives its range and label that would solve the problem could be to change the the legend toggle behaviour to just not allow the user to hide all series - so when a user tries to click on the last series shown the legend show/hide detects that there's only one series shown and ignores the click (given that it makes no sense for a user to hide all series!). I've been able to implement this protection myself via the legendClick event and if the clicked series is visible then count the number of series with visible set to true and if there's only one then cancel the event.
(I appreciate you may reject this bug on the basis that I can work around the issue, but my feedback is still that I think it's unexpected/undesirable behaviour by default if a user happens to click on hiding all legend items for the prior X axis labels to vanish)