teechart & asp
teechart & asp
How can I make teechart's series respond mouse event in asp, and show the x/y value?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi gong,
You can do something like the code below or as in the ASP Server Examples included with TeeChart's installation and add a MarkTips tool to that chart.
If necessary I can send you the full example below.
You can do something like the code below or as in the ASP Server Examples included with TeeChart's installation and add a MarkTips tool to that chart.
If necessary I can send you the full example below.
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>
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
thanks for your answer
i want to use teechart write a .asp. it include ado, a few series. i can't distinguish it run at server or at client.
if you can send me the full code, i am waiting for you.
e-mail address: gongdongwu@tom.com
if you can send me the full code, i am waiting for you.
e-mail address: gongdongwu@tom.com
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi gong,
I've just sent you the example you requested. Regarding ADO in an asp application with TeeChart, please have a look at the ASP Server Examples included with TeeChart installation, at its program group and the tutorials also available there.
I've just sent you the example you requested. Regarding ADO in an asp application with TeeChart, please have a look at the ASP Server Examples included with TeeChart installation, at its program group and the tutorials also available there.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi gong,
If TeeChart is installed in the server you will also need to download its cabinet to the client. For more information about that please read Tutorial 18 - TeeChart runtime installation requirements.
If TeeChart is installed in the server you will also need to download its cabinet to the client. For more information about that please read Tutorial 18 - TeeChart runtime installation requirements.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |