Jump to content
Software FX Community

Displaying Additional Data for a Point

User (Legacy)

Recommended Posts

Rather than use a tooltip, I want to display additional data for points on a

scatter plot when a user clicks that point. This additional data resides in

a recordset. Points are passed as an array based on a TYPE Structure to a

function that displays the chart. This structure is :

Public Type CFXPoints

RecordNo As Long

X As Variant 'has to be variant because it could hold


Y As Double

Symbol As Long

Colour As Long

End Type

Data is derived from a recordset (not all records are used) and used to

populate an array based on this structure. The recordset is also passed to

the Function that displays the chart. This recordset contains additional

fields which will be displayed in a form when a data point is clicked on the


How can I map to the original data from the point when a user clicks the

point. What I need is the Series number and point for the click point.

Anyone know how to get it?

So far I have the following code :

Private Sub ChartFX1_LButtonUp(ByVal X As Integer, ByVal Y As Integer, nRes

As Integer)

Dim intHit As CfxHitTest

intHit = ChartFX1.HitTest(X, Y, ChartFX1.NSeries, ChartFX1.NValues)

If intHit = HIT_POINT Then

'user has hit a point, so need to desplay something

MsgBox ("Point Selected")

End If

End Sub

This tells me when a point is clicked, but I need to know series and point




Link to comment
Share on other sites


"SoftwareFX Support" <support@softwarefx.com> wrote in message


> In the LButtonDown event, you can call the HitTest method to retrieve the

> index of the Series and Point that was clicked, you can then use this


> to retrieve your custom data.


> --

> FP

> Software FX, Inc.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...