LineGraphs draw over eachother/Bring to Front

Aug 12, 2009 at 3:29 PM
Edited Aug 12, 2009 at 3:35 PM

I have a chart with 5 LineGraphs as shown below:

Note the Blue Line is at the back

Blue at Back

I am trying to add functionality to allow user to Bring to Front on Right Click - which I have implement but I think my method is incorrect. I simply find the line, remove it from plotter and then reattach. This however moves the legend item to the bottom as can be seen here with the Legend (a)

Blue at Front

Is there any way to tell the plotter to draw something in front of others without reordering the way they are drawn on the legend?

This is what I am doing - where (drawnGraph) is the Line clicked





Aug 21, 2009 at 1:31 PM


I've created for you new ChartBringToFrontSample - it is in the Latest changeset (28519)/DynamicDataDisplay.sln/DevSamples/ChartBringToFrontSample.csproj.

Briefly - use the Z-Order, programmer, and everything'll be OK)




Aug 24, 2009 at 9:48 AM

Thank you Mikhail

You and your team are doing an excellent job with this!