I have various points on a chart. I would like to be able to show the exact value of the point in a tooltip on mousing over that particular point.
Example:
Chart1.Series("Series1").Points.AddXY("Jul", 600)
Chart1.Series("Series1").Points.AddXY("aug", 458)
On mousing over these points on the chart, the tooltip text should show "600" or "458".
Edit:
This gets me close but it only shows the value of the mouse position on the point, not the full value of the point:
Private Sub Chart1_GetToolTipText(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataVisualization.Charting.ToolTipEventArgs) Handles Chart1.GetToolTipText
If e.HitTestResult.PointIndex >= 0 Then
If e.HitTestResult.ChartElementType = DataVisualization.Charting.ChartElementType.DataPoint Then
MetroToolTip1.SetToolTip(Chart1, e.y.tostring)
End If
End If
End Sub