I have a few ValueOverlay objects on my graph, and I would like to remove them from the legend. I set the legend property to null, but the overlays still appear in the legend. How do I remove them?
Hi Ed,
I have been looking into your requirement and I believe that you just need not to set the legend property for your value overlay. I am attaching a sample application(DataChart_Legend.zip) where everything seems to work as expected.
Let me know, if you need any further assistance on this matter.
Although I agree with your code, my particular code does not behave in this way. I wonder is it because I create my series dynamically in the view model? I also have a custom template for the legend which sets the line font in the legend to match the series line font (dash array), but I don't have any code to automatically add my series to the legend.