How to Programatically Show/hide chart series?

Posted by: oric-cq on 8 September 2017, 11:31 pm EST

  • Posted 8 September 2017, 11:31 pm EST

    Hi there!

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

    Best regards,

  • Marked as Answer

    Replied 8 September 2017, 11:31 pm 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