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,

    Ciro.
  • 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 :
    http://our.componentone.com/groups/topic/c1chart-filter-on-dropdown/

    Regards
    Abdias
Need extra support?

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

Learn More

Forum Channels