Hello Pasi,
how can I implement a tooltip at Point Line Chart?
When I take the mouse to a point, I want to view information from this point.
In a IntensityGridSeries I could use the Event "MouseTraceCellChanged".
Point Line Chart Tooltip
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Point Line Chart Tooltip
Please follow the "Scatter, point tracking" or "Cursor tracking" example.
LightningChart Support Team, PT
Re: Point Line Chart Tooltip
Hello Pasi,
this works fine, but I want to get a value only when I am on the point.
this works fine, but I want to get a value only when I am on the point.
Code: Select all
private void MouseMove(object sender, MouseEventArgs e)
{
foreach (var pointLine in chart.ViewXY.PointLineSeries)
{
int iNearestIndex;
double dXValue, dYValue;
if (pointLine.SolveNearestDataPointByCoord(e.X, e.Y, out dXValue, out dYValue, out iNearestIndex))
{
newSelectedTestPoint = pointLine.Points[iNearestIndex].Tag as TestPoint;
SetToolTip(chart, newSelectedTestPoint);
break;
}
}
}
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Point Line Chart Tooltip
How about setting a SeriesEventMarkers to positions of the points? In marker's MouseOverOn event, you'll get info of which marker was selected.
LightningChart Support Team, PT