I'm using Line series with diamond 'points' in my chart. The chart have several series with several 'points' on each serie.
Now, what I'm interested in doing is giving a tooltip showing the X and Y value of the point when the mouse is above a point (or very close to one), but NOT when the mouse is over the line (between two points).
Bu using the series.Clicked(x, y)... in the MouseMove event, I was able to determine when the mouse is over a line, but as I said, I want to know if the mouse is over a point on the line.
Is this possible?
Regards Andreas
Tooltip when mouse over point (not line)
Hello Andreas,
You could use the ClickableLine property.
Eg.
Regards,
Marc Meumann
You could use the ClickableLine property.
Eg.
Code: Select all
private void Form1_Load(object sender, EventArgs e)
{
line1.Pointer.Visible = true;
line1.FillSampleValues(10);
line1.ClickableLine = false;
}
private void tChart1_MouseMove(object sender, MouseEventArgs e)
{
if (line1.Clicked(e.X, e.Y) != -1)
{
//do something ... only triggered over points
}
else
{
//clear any custom content
}
}
Marc Meumann
Steema Support