Getting a mouse over event for the chart in ASP

S

Santhosh_Ravi

Hello,

I have a chart drawn using owc10 .I need to get the mouse over

event which provide me the values at the mouse position on the chart .

For Example ,some thing like this



]http://charts3.barchart.com/chart.asp?sym=MSFT&data=A&jav=adv&vol=-
Y&evnt=adv&grid=Y&code=BSTK&org=stk&fix=[/url]



Can anybody help me with this problem or suggest some article where i
can get an idea of how this can be done.

Thanks in advance

Santhosh
 
G

Guest

Try this
-----------------
Private Sub ChartSpace_MouseMove(ByVal Button As Long,
ByVal Shift As Long, ByVal x As Long, ByVal y As Long)
Dim o As Object
Dim txt

Set o = ChartSpace.RangeFromPoint(x, y)

If TypeName(o) = "ChPoint" Then
Dim oPoint As ChPoint
Set oPoint = o
txt = oPoint.Parent.Name & " , " & oPoint.GetValue
(chDimCategories) & " value is " & oPoint.GetValue
(chDimValues)
Else
txt = " "
End If

ChartSpace.ChartSpaceTitle.Caption = txt
End Sub

Private Sub Form_Load()
ChartSpace.BuildLitChart
ChartSpace.Charts(0).Type = chChartTypeColumnClustered
ChartSpace.EnableEvents = True
ChartSpace.HasChartSpaceTitle = True
End Sub
---------------

Thao Moua
OWC Webchart Support

This posting is provided "AS IS" with no warranties, and
confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
S

Santhosh_Ravi

Thanks for hte reply

But I am trying to do this on an ASP page .Would you please help me out

with this

Thanks again





Originally posted by anonymous
Try this

Private Sub ChartSpace_MouseMove(ByVal Button As Long,
ByVal Shift As Long, ByVal x As Long, ByVal y As Long)
Dim o As Object
Dim txt

Set o = ChartSpace.RangeFromPoint(x, y)

If TypeName(o) = "ChPoint" Then
Dim oPoint As ChPoint
Set oPoint = o
txt = oPoint.Parent.Name & " , " & oPoint.GetValue
(chDimCategories) & " value is " & oPoint.GetValue


txt = " "
End If

ChartSpace.ChartSpaceTitle.Caption = txt
End Sub

Private Sub Form_Load()

ChartSpace.Charts(0).Type = chChartTypeColumnClustered
ChartSpace.EnableEvents = True
ChartSpace.HasChartSpaceTitle = True
End Sub


Thao Moua
OWC Webchart Support

This posting is provided "AS IS" with no warranties, and
confers no rights. Use of included script samples are
subject to the terms specified at
-----Original Message-----
Hello,
I have a chart drawn using owc10 .I need to get the
mouse over
on the chart .
For Example ,some thing like this
]http://charts3.barchart.com/chart.asp?"]http://charts3.ba- rchart.com/chart.asp?[/url]
sym=MSFT&data=A&jav=adv&vol=-
Y&evnt=adv&grid=Y&code=BSTK&org=stk&fix=[/url]
Can anybody help me with this problem or suggest some
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top