How to change the visibility of a XYChart Series, without hiding its Legend?

Charts for WPF Forum

Posted 2 years ago by Fanis
Version: 22.1.1


I need to be able to toggle the visibility of a line series through a checkbox in the Legend. When I set the visibility to Hidden or Collapsed, the line series disappears from the legend. I would like to keep the list of line series visible in the legend so the user can make them visible again.

Is there a way to hide a line series without affecting the legend?

Thank you.

Comments (1)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Fanis,

I'm sorry but there is internal logic that only adds Legend entries for series that have their Visibility == Visibility.Visible.  You'd have to use a menu or other mechanism to toggle the series visibility.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.