Show info about selected point in MSChart (PointSelected)
I want to be able to show a tooltip when the user clicks on a point on a MSChart.
But how do I get it to run my function when the user clicks on the dots?
I found this function and tried to create a new one but it won´t run it.
"Private Sub object_PointSelected ( series As Integer, dataPoint As Integer, mouseFlags As Integer, cancel As Integer )"
Thanks
Re: Show info about selected point in MSChart (PointSelected)
Quote:
Originally Posted by Iceman5
I want to be able to show a tooltip when the user clicks on a point on a MSChart.
But how do I get it to run my function when the user clicks on the dots?
I found this function and tried to create a new one but it won´t run it.
"Private Sub object_PointSelected ( series As Integer, dataPoint As Integer, mouseFlags As Integer, cancel As Integer )"
Thanks
In VB6 works this:
Private Sub MSChart1_PointSelected(Series As Integer, _
DataPoint As Integer, MouseFlags As Integer, Cancel As Integer)
MSChart1.Row = DataPoint
MSChart1.ToolTipText = MSChart1.Data
End Sub
Good luck :wave: