Print Page | Close Window

Series from Point

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18954
Printed Date: 22 November 2024 at 5:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Series from Point
Posted By: sined
Subject: Series from Point
Date Posted: 15 September 2011 at 7:07am
Hello,
with a very simple code we can identify a point on graph:
 
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)
       
    Dim Point As ChartSeriesPoint
    On Error Resume Next
    Set Point = Element
    If (Not Point Is Nothing) Then
        beep
    End If
  
End Sub
 
 
How can I identify the series who belongs this point?
 
Thanks Mirko



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net