asp实现k线图(在线)

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
MS

时间: 2024-08-31 00:57:18

asp实现k线图(在线)的相关文章

asp.net(c#) 怎么画股票的K线图。请高手给一例子参考,谢谢!

问题描述 asp.net(c#)怎么画股票的K线图.请高手给一例子参考,谢谢! 解决方案 解决方案二:自己先顶一下!解决方案三:可以用这个控件WebChart或自己写:解决方案四:能指引一下,自己写怎么写吗,贴个例子看看或关于这方面的资料谢谢解决方案五:ytytyt 解决方案六:画一个实心矩形,一条线就是K线了.然后就是画其它的均线,曲线解决方案七:用第三方控件dundas解决方案八:teechart也可以

ORZ~求外汇k线图控件

问题描述 我要做一个涉及到外汇的网站.C#开发.现在页面需要显示可以时时更新的外汇K线图.有哪位达人能帮帮小弟的?先谢了~在线等! 解决方案 解决方案二:自顶解决方案三:该回复于2008-11-05 18:56:32被版主删除解决方案四:没遇到过这种情况.解决方案五:该回复于2008-05-09 11:11:13被版主删除

Flash饼状图,柱状图,k线图等动态图表解决资源大全

k线图|饼状图|动态|解决|图表|柱状图 FLASH 3D饼状图,2D饼状图,3D柱状图,2D柱状图,交易K线图,走势图,曲线图.... 各类FLASH+XML图表应用资源,数据直观统计应用的必备工具.... 收集详尽的FLASH商业图表的解决方案.汇总在这里,点击打开下面的网站下载资源. AnyChart Flash Chart Component Aurigma FlashChart B-Line Charting Component Corda's PopChart FusionChart

终于搞定了,owc制作k线图

k线图 终于搞定了,刚才我犯了一个极其低级的错误,真想给自己一个大嘴巴. <%@ Language=VBScript %><% Response.Buffer=true Response.Expires = 0 Response.ExpiresAbsolute = now() - 1 Response.AddHeader "cache-control","private" Response.AddHeader "pragma",

用Java绘制K线图

Java语言中的Applet(Java小程序)和Application(Java应用程序)是在结构和功能上都存在很大差异的两种不同的编程方式.Applet应用于Web页上,可做出多姿多彩的页面特效,给网站增辉添色:Application则与其他编程语言(如VB.VC)一样,可编制各种应用程序. 本文要讨论的是第一种情况,在Web页上用Java Applet绘制K线图. K线是股市行情分析中的一种参数指标,用股票每日的开盘价.最高价.最低价.收盘价及成交量等数据进行作图,配合五日.十日均线便可反映

用CAShapeLayer写股市K线图动画效果

用CAShapeLayer写股市K线图动画效果   说明 入市有风险,炒股需谨慎.(因项目需求,本人提供了写这种效果的源码)   效果   源码 // // ViewController.m // Path // // Created by YouXianMing on 15/5/11. // Copyright (c) 2015年 YouXianMing. All rights reserved. // #import "ViewController.h" @interface Vi

数据-K线图显示不出来,为什么啊

问题描述 K线图显示不出来,为什么啊 K线图在什么情况下显示不出来啊?我的数据什么的都获取正常,在昨天都可以显示的 ,今天但是显示不出来了 解决方案 你看代码,调试,估计是某些数据有问题,而你有没有做容错,导致出错或计算不对,画不出来 解决方案二: 是不是网络的问题呢,看看出错日志吧 解决方案三: 如果程序没有修改,则需要检查外部条件.边界条件或异常处理.

android 股票K线图

现在在手上的是一个证券资讯类型的app,其中有涉及到股票行情界面,行情中有K线图等,看到网上很多人在求这方面的资料,所以我特地写了一个demo在此处给大家分享一下. 下面是做出来的效果图: 这个 界面 是如何画出来的我就不做介绍了,大家可以去下载项目源码. 背景图是利用canvas先画出一个矩形,然后再画几根虚线,均线图是通过path来绘制的,总之图的绘制是很简单的,我就不在这里作介绍了,大家可以去github下载源码看看.涉及到均线.最高价.最低价.收盘价.开盘价的概念大家可以百度一下. 我再

如何制作K线图?_编程10000问

<%@ Language=VBScript %><%Response.Buffer=trueResponse.Expires = 0Response.ExpiresAbsolute = now() - 1Response.Addheader "cache-control","private"Response.Addheader "pragma","no-cache"%><!DOCTYPE html