Hello,
We just updated from version 18.1.0.42 to 18.3.0.35 and discovered that a series that is hidden from start no longer shows when you click its legend item.
Before the update we used the IsSeriesVisible property to control the series visibility when it was added to the chart. But it seems that the connection to its legend item has been transfered to the Visibility property?
However, it doesn't matter if we use IsSeriesVisible or Visibility. If the series is hidden from start, clicking the legend item no longer shows the series.
You can easily reproduce the error in your chart line series example. In Line.xaml, add ToggleLineSeriesVisibility="True" to the chart legend:
ToggleSeriesVisibility="True"
HorizontalContentAlignment="Center"
DockPosition="Bottom"
ItemTemplate="{StaticResource legend}" />
And hide the first series that is added:
EnableAnimation="True"
ItemsSource="{Binding DataPoints}"
Visibility="Hidden"
Label="Germany"
It makes no difference if you set Visibility to "Collapsed" or use IsSeriesVisible="False" instead. The series can't be made visible by clicking its legend item. Hiding and showing the second series, that is visible from start, works fine.
If you make the corresponding changes to the xaml of the LineChartDemo example for version 18.1.0.42, set ToggleSeriesVisibility to "True" and hide one of the series from start, you can see that it works just fine there.
Best regards,
Marcus