How to Programatically Show/hide chart series?

Posted by: oric-cq on 9 September 2017, 8:31 am EST

  • Posted 9 September 2017, 8:31 am EST

    Hi there!

    Is there a way to programatically show or hide chart series?

    Best regards,

  • Marked as Answer

    Replied 9 September 2017, 8:31 am EST

    Hi Ciro,

    You can show/hide chart series programmatically by setting the Visibility property. Here's the code snippet for that :

    chartSL.Data.Children[0].Visibility = System.Windows.Visibility.Collapsed;

    You can also refer to the following forum post for further clarity :

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels