Creating a Mouse Move Event for Chart with Multiple Lines

You can use the PlotElement.MouseEnter event to create a mouse move event for chart with multiple lines like the following:

Lines lines = new Lines() { StrokeThickness = 4 };

lines.MouseEnter += (s, e) =>

{

   // fires when mouse is over the lines

   Debug.WriteLine("MouseEnter");

   // show coordinates

   ...

};

dataSeries.Connection = lines;


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.