I would like to get visibility state of series in the code exaple below. I have set the property ToggleSeriesVisibility to legend and this works perfectly. But when I try to get current state it returns initial value.
foreach (var series in chart.Series)
{
var isVisible = series.IsVisible; // always true even though series is not visible
}
If I set IsVisible manually in code, it changes the visibility of series and the code above works as expected.