Display Y Axis Point Value On MouseOver |
Post Reply |
Author | |
SeatTrax
Newbie Joined: 01 June 2011 Location: Kansas City, MO Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 06 December 2012 at 6:13pm |
In our ChartSplineSeriesStyle charts, we don't like the look of the labels on the points, and always set Style.Label.Visible = False.
Now we have a customer that has asked if we can display the Y Axis point value when they mouse over the point. I looked through the development forums, and didn't find any mention of a mouse over method, and the only thing I could find in the codejock sample chart programs was the following sub routine in ChartSample.vbp, but it writes the point value to the immediate window, and we want it to display above the point, when the point is mouse over'd. Private Sub ChartControl_MouseMove(Button As Integer, Shift As Integer, x As Long, y As Long) Dim Element As ChartElement Set Element = ChartControl.HitTest(x, y) If TypeOf Element Is XtremeChartControl.ChartSeriesPoint Then Dim Point As ChartSeriesPoint On Error Resume Next Set Point = Element If (Not Point Is Nothing) Then Debug.Print "Point " & Point.Value(0) End If End If End Sub Is is possible to add this functionality w/ the existing Chart Control? |
|
SeatTrax
Newbie Joined: 01 June 2011 Location: Kansas City, MO Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Figured out the answer to my own dilemma
Wish the CodeJock example code was a bit more detailed tho! Private Sub ChartControl_MouseMove(Button As Integer, Shift As Integer, x As Long, y As Long) Dim Element As ChartElement Set Element = ChartControl.HitTest(x, y) If TypeOf Element Is XtremeChartControl.ChartSeriesPoint Then Dim Point As ChartSeriesPoint On Error Resume Next Set Point = Element If (Not Point Is Nothing) Then ChartControl.ToolTipText = Point.Value(0) End If End If End Sub |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |