您的位置: 首页 N搜咨询 文章阅读 asp实现k线图(在线)
打印本页 放大字体 关闭本页
asp实现k线图(在线)

作者:N搜网友 编辑:N搜网 录入:N搜网 来源:N搜网络
录入时间:2006-9-29 更新时间:2006-9-29 点击次数:1500
主标题:asp实现k线图(在线)
副标题:asp实现k线图(在线)
短标题:asp实现k线图(在线)
 
可以考虑使用MSCHART,但是缺点是显示不太好看,不很专业,同时,如果客户端没有装的话就比较麻烦,因为显示不出来,所以一般的网站都采用生成图片的方式。下面给出MSCHART的一些东西,可以自己考虑着使用,我没有使用过其他的控件,所以不能给你满意的答复。另外附给你一个网址,www.tjinfo.com,里面有个调查题,使用了MSCHART,但是没有用折线,这个你可以自己定义的,CSDN的调查也使用了MSCHART。
=================================================================
看看我的这篇总结,你会受益匪浅!
关于Mschart的说明文档 

MsChart是微软制作的功能强大的图表工具,用它可以很方便的建立各种图表。制作各种3维2维的直方图,折线图。结合前一段时间我对Mschart组件的认识,谈谈Mschart组件的使用方法。
1、 Chart Activex控件:
In the HTML page, insert an <OBJECT> tag for the License Manager object before any other <OBJECT> tags. The License Manager is an ActiveX control that is installed with Internet Explorer. 
NOTE: This CLASSID, "5220cb21-c88d-11cf-b347-00aa00a28331", is for the License Manager and not for your ActiveX controls. You must use the same CLASSID every time you refer to the LPK file. In addition, you should keep the Name property of the <PARAM> tag as "LPKPath", and set the Value property for the <PARAM> tag of the License Manager object to the LPK file name and path. This path may be a relative path but must not refer to a UNC share or a URL on another domain. 
Because you can only have one LPK file for each HTML page, make sure that you include all of the licensed ActiveX Controls for the page when you generate your LPK file. For example:
<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
id="Microsoft_Licensed_Class_Manager_1_0">
<param NAME="LPKPath" VALUE="mschart.lpk">
</object>
Insert the <OBJECT> tag for your licensed control afterward. For example, an HTML page that displays the Microsoft Masked Edit control looks like this.
Here I downloaded the file mschart.cab from Microsoft’s website. It has been digitally signed.
<OBJECT classid="clsid:3A2B370C-BA0A-11D1-B137-0000F8753F5D" 
id=mschart1 style="HEIGHT: 326px; WIDTH: 651px" CODEBASE="mschart.cab"></OBJECT>
You can look this acticle if you need help. 
http://support.microsoft.com/support/kb/articles/Q159/9/23.ASP
2、 Mschart组件的一些常用属性介绍
a、charttype:图形的类型
charttype=0>三维直方图
charttype=1>二维直方图
charttype=2>三维折线图
charttype=3>二维折线图
charttype=4>三维面积图
charttype=5>二维面积图
charttype=14>饼图
b、showlegend:是否显示解说
c、titletext:标题
d、Columncount: The number of data columns
e、Rowcount:The number of data rows
f、Footnotetext:The footnote text.
g、Plot: Returns a reference to a Plot object that describes the area upon which a chart is displayed.
h、row: A row number in the current column. Rows are numbered from top to bottom beginning with 1. column: The current data column.
i、Rowlabel: The text for a row label. The label you specify sets the label for the data points identified by the Row property. This label appears along the category axis for most chart types and is used as the label for each individual pie in a pie chart. Label text may not be displayed if it is too long to fit on a chart.columnlabel: . Label text associated with a column in the data grid.
j、Data: The data point value. If the current data point already contains a value, it is replaced by the new value. The chart is redrawn to reflect the new value for the current data point.
k、ChartData: A two-dimensional array that holds the data used to draw the chart. If the first series of a multi-dimensional array contains strings, those strings will become the labels of the chart.ChartData is the default property for the MSChart control.
It is so many properities about Mschart Activex.I only introduce so much.Now,I will provide your two example to you!I wish it can help you understand it.
Example 1:It come from: 
http://www.4guysfromrolla.com/webtech/MSChartExample.shtm
<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
id="Microsoft_Licensed_Class_Manager_1_0">
<param NAME="LPKPath" VALUE="mschart.lpk">
</object>
<OBJECT classid="clsid:3A2B370C-BA0A-11D1-B137-0000F8753F5D" 
id=mschart1 style="HEIGHT: 326px; WIDTH: 651px" CODEBASE="mschart.cab"></OBJECT> 
<script LANGUAGE="Vbscript">
MSChart1.ChartType =1
MSChart1.Plot.SeriesCollection(1).Pen.VtColor.Set 0,0,0
MSChart1.Plot.SeriesCollection(1).Pen.Width = 50
For i = 1 To MSChart1.Plot.Axis(1).Labels.Count
MSChart1.Plot.Axis(1).Labels(i).Format = "$0,###"
MSChart1.Plot.Axis(1).Labels(i).VtFont.Name = "Tahoma"
MSChart1.Plot.Axis(1).Labels(i).VtFont.Size = 10
Next
MSChart1.RowCount = 5
MSChart1.ColumnCount =2
MSChart1.ShowLegend = True
for y = 1 to 2
for x = 1 to 5 
MSChart1.Row = x
MsChart1.Column= y
MSChart1.RowLabel = "Row " & x
call MSChart1.DataGrid.SetData(x, 1, x*5,nullFlag)
call MSChart1.DataGrid.SetData(x, 2, x*10,nullFlag)
next
Mschart1.ColumnLable=y
next 
</script>
Example 2:We almost can see it everywhere.
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function window_onload() 
{
t=0;
mschart1.TitleText = "标题";
mschart1.ShowLegend =true;
mschart1.ColumnCount =2;
mschart1.RowCount =3;
for (i=0;i<3;i++)
{for (j=0;j<2;j++)
{ mschart1.Row=i+1;
mschart1.Column=j+1;
if (2>1)
mschart1.ColumnLabel =document.form1.cname(j).value;
else
mschart1.ColumnLabel =document.form1.cname.value;
if ((document.form1.rcount.value*document.form1.ccount.value)>1)
mschart1.Data=document.form1.rc_data(t).value;
else
mschart1.Data=document.form1.rc_data.value;
t++;
}
if (document.form1.rcount.value>1)
mschart1.RowLabel =document.form1.rname(i).value ;
else
mschart1.RowLabel =document.form1.rname.value;
}
}
function select1_onchange() {
mschart1.chartType =select1.value
mschart1.Plot
}
//-->
</SCRIPT>
<TITLE>数据显示图</TITLE>
</HEAD>
<BODY LANGUAGE=javascript onload="return window_onload()">
<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
id="Microsoft_Licensed_Class_Manager_1_0">
<param NAME="LPKPath" VALUE="mschart.lpk">
</object>
<OBJECT classid="clsid:3A2B370C-BA0A-11D1-B137-0000F8753F5D" 
id=mschart1 style="HEIGHT: 326px; WIDTH: 651px" CODEBASE="mschart.cab"></OBJECT> 
<BR>
显示方式
<SELECT id=select1 name=select1 LANGUAGE=javascript onchange="return select1_onchange()">
<OPTION value=1>二维直方图</OPTION>
<OPTION value=0>三维直方图</OPTION>
<OPTION value=3>二维折线图</OPTION>
<OPTION value=2>三维折线图</OPTION>
<OPTION value=5>二维面积图</OPTION>
<OPTION value=4>三维面积图</OPTION>
<OPTION value=14>饼图</OPTION></SELECT>
<!
chtitle 标题
rcount 列数
ccount 行数
rc_type 排列方式(1 以行方式,2以列方式)
rc_data 数据
rname 列名数组
cname 行名数组>
<form name=form1 id=form1>
<input type="hidden" name=rname id=rname value=1993>
<input type="hidden" name=rname id=rname value=1996>
<input type="hidden" name=rname id=rname value=1999>
<input type="hidden" name=cname id=cname value=身高>
<input type="hidden" name=cname id=cname value=体重>
<input type="hidden" name=rcount id=rcount value=3>
<input type="hidden" name=chtitle id=chtitle value=CoolFatMan的成长里程>
<input type="hidden" name=ccount id=ccount value=2>
<input type="hidden" name=rc_data id=rc_data value=179>
<input type="hidden" name=rc_data id=rc_data value=160>
<input type="hidden" name=rc_data id=rc_data value=180>
<input type="hidden" name=rc_data id=rc_data value=170>
<input type="hidden" name=rc_data id=rc_data value=182>
<input type="hidden" name=rc_data id=rc_data value=182>
</form></BODY></HTML>
N搜网-中国网上商店商品服务搜索门户]:[本文章由N搜网于2006-9-29录入系统,网址:www.nsall.com

打印本页 放大字体 关闭本页
 
 
相关主题文章
一些常用的正则表达式 紫雨轩IIS URL 重写组件 V1.0 [组图]
17种正则表达式 IIS实现ASP,CGI,PERL和PHP+MYSQL [组图]
WEB打印大全 关闭窗口时保存数据的办法
17种正则表达式 用正则解析图片地址,并利用XMLHTTP组件将其保存
利用ASP+JMAIL进行邮件群发的新思路 用ASP实现对ORACLE数据库的操作
ASP操作Excel技术总结 LCID地区代码
实现搜索结果的关键词变色标注的程序 IIS6.0下ASP的新增功能
浅谈如何建立三层体系结构的ASP应用程序 判断Cookies是否处于开启状态
验证码的程序及原理 在线实时开通WEB及FTP源程序 [组图]
vbs(asp)的栈类 用ASP打开远端MDB文件的方法
巧用ASP生成PDF文件 利用FSO取得BMP,JPG,PNG,GIF文件信息
远程获取内容,并将内容存在本地电脑上,包括任何… 三种禁用FileSystemObject组件的方法
js的单元格颜色间隔 一个不需要第三方组件,可实现华简单图形的类
asp实现k线图(在线) 用InstallShield 进行 ASP 软件的打包和自动安装…
如何在服务器端调用winzip命令行对上传的多个文件… 构建免受 FSO 威胁虚拟主机 [组图]
如何正确显示数据库中的图片 远程注册自己的组件
asp提高首页性能的一个技巧 Flash和Asp数据库的结合应用
ASP小偷(远程数据获取)程序的入门教程 [组图] 一个采集入库生成本地文件的几个FUCTION
asp编写的加密和解密类 不能使用asp标记的时候的一个解决办法
ASP无组件上传进度条解决方案 ASP中也能解压缩rar文件 [组图]
ASP做象资源管理器的树形目录 ASP文件上传原理分析及实现实例
一个通用的保护ASP系统的方法 编写安全的ASP代码
ASP ActiveX 组件 连接数据库查询手册
用ASP实现在线压缩与解压缩 ASP能读写注册表
xmlHTTP技术资料 ASP小偷(远程数据获取)程序入门教程
ASP网站漏洞解析及黑客入侵防范方法 轻松实现将上传图片到数据库
ASP编码优化 最简洁的多重查询的解决方案
无组件实现文件上传/下载 ASP漏洞全接触-高级篇
ASP漏洞全接触-入门篇 ASP技术访问WEB数据库
自动获得远程图片 #Writ 获得远程的文件,获得远程HTML文件源码
CDONTS和Jmail的使用 使用ASP生成图片彩色校验码
用ASP制作饼图、柱状图等 [组图] ASP生成静态页面的方法
asp组件上传 ASP中利用OWC控件实现图表功能详解 [组图]
用asp自动解析网页中的图片地址,并将其保存到本… 常用ASP自定义函数集
在ASP中用“正则表达式对象”来校验数据的合法性… ASP中正则表达式的应用
ASP面向对象编程探讨及比较 在ASP文件中调用DLL
C++中的虚函数(virtual function) C语言初学者入门讲座 第二讲 数据类型(1)
C语言初学者入门讲座 第二讲 数据类型(2) C语言初学者入门讲座 第二讲 数据类型(3)
利用VC++编写Windows95的CPL组件 调试Release版本应用程序
利用VC++开发ASP图像处理组件 如何在ASP.Net 中把图片存入数据库
用ASP实现的2000年倒记时程序 用VB6分离出文本框的单词
在ASP中用“正则表达式对象”来校验数据的合法性… 用ASP实现网上考试系统
在ASP中利用“正则表达式” 对象实现UBB风格… [组图] 在Asp.Net中从sqlserver检索(retrieve)图片
消息队列在VB.NET数据库开发中的应用 在PowerBuilder中调用ChooseColor函数
在PB中应用灵活多样的排序 用C#编写获取远程IP,MAC的方法
如何在ASP程序中打印Access报表 用Vb.net实现自定义界面
使用C#编写扩展存储过程 Java平台上的CRM系统
VB.NET开发扫描客户端服务工具 Visual Basic.Net连各种数据库的几种方法
JSP数据库连接方式总结 如何选购虚拟主机
什么是虚拟主机? 虚拟主机优点有那些?
 
 
 
本站关键字:网上商店商品服务大全 网上购物导航 在线购物搜索引擎 网店比较购物 网络商城 特色网上超市商店 网上网络开店购物