Search code examples
c#wpfvisiblox

Interactive legend in Visiblox chart


I have a Visiblox chart showing several LineSeries. I would like to be able to show/hide these individually, preferably by clicking on the corresponding LegendItem or inserting a checkbox in the legend item.

I tried adding a checkbox to the LegendItem ControlTemplate, and it does show up, but I can't manipulate it in any way.

Thanks in advance.


Solution

  • Retemplating the LegendItem is the way to do this - we've just published a blog post describing how to achieve exactly what you've described (and more): http://www.visiblox.com/blog/2012/04/interacting-with-the-legend.