ToggleSeriesVisibility doesn't work on series that are hidden from start

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

6 Replies 1 reply marked as answer

SM Saravanan Madheswaran Syncfusion Team October 15, 2020 01:15 PM UTC

Hi Marcus   
   
Greetings from Syncfusion.   
   
We able to reproduce the reported issue at our end and we forward this to our development team for further validation. So, we will update you the validation status in two business days [19th October 2020].    
 
Regards, 
Saravanan. 



SM Saravanan Madheswaran Syncfusion Team October 20, 2020 02:14 PM UTC

Hi Marcus, 
 
Thanks for the patience, we are in the process of confirming the default behavior between Visibility and IsSeriesVisible, and we will share the solution or custom patch for this issue by tomorrow (21st October 2020) EOD.  
 
Regards, 
Saravanan. 



SM Saravanan Madheswaran Syncfusion Team October 22, 2020 06:30 AM UTC

Hi Marcus,   
  
We have attached the custom NuGet package for issue fix. It can be downloaded from the following location. 

Please find the NuGet package from below location:   
  
  
  
  
Assembly Version: 18.3.0.35  
 
Disclaimer: 
Please note that we have created this patch for version 18.3.0.35 specifically to resolve the following issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received. 

This fix will be included in our upcoming weekly NuGet release on 27th October 2020. 
  
Regards,
Saravanan.  



MJ Marcus johansson October 22, 2020 07:58 AM UTC

Hello, and thanks for your help and quick responds!

I downloaded SyncfusionPatch_18.3.0.35_1242682_10212020081800933_F158708.zip and changed the references in our own app and your chart demos to the new Syncfusion.SfChart.WPF.dll file.

Unfortunately the problem is still present. If a series is hidden from start (either through the IsSeriesVisible- or Visibility-property), it will not show when you click on the corresponding legend item. 

We use .NET 4.6 in our own app and 4.5 for your demos (and reference the corresponding dll files in your patch), if that matters.


Best regards
Marcus


SM Saravanan Madheswaran Syncfusion Team October 23, 2020 03:48 PM UTC

Hi Marcus, 
 
We have suspected that it may due to referring the old package from your cache, so please clear the NuGet cache and restore or remove and add the reference to the project.  
    
Please refer below steps to remove the cache:    
Step 1: Uninstall the SfChart package in your application.   
Step 2: Close your application.   
Step 3: Delete bin, obj in your application location.   
Step 4: Check the below link to clear the cache.     
 
And as we promised before, the fix was included in our upcoming weekly NuGet release (27th October 2020). We will notify you once the NuGet is rolled out.  
 
Regards, 
Saravanan.  



SM Saravanan Madheswaran Syncfusion Team October 27, 2020 01:59 PM UTC

Hi Marcus,  
 
We are glad to announce that our weekly NuGet was rolled out today and fix for the reported issue was included in the weekly NuGet.

NuGet Version: 18.3.0.44 

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards,  
Saravanan.  


Marked as answer
Loader.
Up arrow icon