teechart & asp
Posted: Fri Apr 28, 2006 3:49 am
How can I make teechart's series respond mouse event in asp, and show the x/y value?
Steema Software - Customer Support Forums
http://216.92.243.79/support/
Code: Select all
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_onload()
'sets up Chart to print from IE's print option
TChart1.Environment.IEPrintWithPage=True
TChart1.AddSeries(0)
set s=TChart1.Series(0)
s.FillSampleValues(7)
TChart1.Tools.Add(8)
end sub
Sub TChart1_OnClickSeries(SeriesIndex, ValueIndex, Button, Shift, X, Y)
TChart1.StopMouse
if TChart1.Series(SeriesIndex).PointLabel(ValueIndex) <> "" then
msgbox TChart1.Series(SeriesIndex).PointLabel(ValueIndex)
else
msgbox TChart1.Series(SeriesIndex).YValues.Value(ValueIndex)
end if
end sub
-->
</SCRIPT>
<html><head><LINK REL=STYLESHEET TYPE="text/css" HREF="style.css"></head>
<BODY bgcolor=#ffffff>
<p>
<font face="Arial" color="#004080"><em><big><strong>Mark tip tool Example</strong></big></em></font>
<H3></H3>
<P></P>
<p>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub TChart1_OnDblClick()
TChart1.ShowEditor
end sub
-->
</SCRIPT>
<OBJECT id=TChart1 height=290 width=550
classid=CLSID:FAB9B41C-87D6-474D-AB7E-F07D78F2422E><PARAM NAME="Base64" VALUE="VFBGMAtUQ2hhcnRDaGFydAAETGVmdAIAA1RvcAIABVdpZHRoAyYCBkhlaWdodAMiARJUaXRsZS5U
ZXh0LlN0cmluZ3MBBghUZWVDaGFydAAAAAAAAAACAAAAAP////8="></OBJECT>
</p>
</BODY>
</html>