|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
由于ASP提供的是一对多的服务,所以用户的一些特殊需求很难得到满足。k线图|在线能够思索利用MSCHART,可是弱点是显现不太悦目,不很专业,同时,假如客户端没有装的话就对照贫苦,由于显现不出来,以是一样平常的网站都接纳天生图片的体例。上面给出MSCHART的一些器材,能够本人思索着利用,我没有利用过其他的控件,以是不克不及给你中意的回复。别的附给你一个网址,www.tjinfo.com,内里有个查询拜访题,利用了MSCHART,可是没有效折线,这个你能够本人界说的,CSDN的查询拜访也利用了MSCHART。
=================================================================
看看我的这篇总结,你会受益不浅!
关于Mschart的申明文档
MsChart是微软制造的功效壮大的图表工具,用它能够很便利的创建各类图表。制造各类3维2维的直方图,折线图。分离前一段工夫我对Mschart组件的熟悉,谈谈Mschart组件的利用办法。
1、ChartActivex控件:
IntheHTMLpage,insertan<OBJECT>tagfortheLicenseManagerobjectbeforeanyother<OBJECT>tags.TheLicenseManagerisanActiveXcontrolthatisinstalledwithInternetExplorer.
NOTE:ThisCLASSID,"5220cb21-c88d-11cf-b347-00aa00a28331",isfortheLicenseManagerandnotforyourActiveXcontrols.YoumustusethesameCLASSIDeverytimeyourefertotheLPKfile.Inaddition,youshouldkeeptheNamepropertyofthe<PARAM>tagas"LPKPath",andsettheValuepropertyforthe<PARAM>tagoftheLicenseManagerobjecttotheLPKfilenameandpath.ThispathmaybearelativepathbutmustnotrefertoaUNCshareoraURLonanotherdomain.
BecauseyoucanonlyhaveoneLPKfileforeachHTMLpage,makesurethatyouincludeallofthelicensedActiveXControlsforthepagewhenyougenerateyourLPKfile.Forexample:
<objectCLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
id="Microsoft_Licensed_Class_Manager_1_0">
<paramNAME="LPKPath"VALUE="mschart.lpk">
</object>
Insertthe<OBJECT>tagforyourlicensedcontrolafterward.Forexample,anHTMLpagethatdisplaystheMicrosoftMaskedEditcontrollookslikethis.
HereIdownloadedthefilemschart.cabfromMicrosoftswebsite.Ithasbeendigitallysigned.
<OBJECTclassid="clsid:3A2B370C-BA0A-11D1-B137-0000F8753F5D"
id=mschart1style="HEIGHT:326px;WIDTH:651px"CODEBASE="mschart.cab"></OBJECT>
Youcanlookthisacticleifyouneedhelp.
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:Thenumberofdatacolumns
e、Rowcount:Thenumberofdatarows
f、Footnotetext:Thefootnotetext.
g、Plot:ReturnsareferencetoaPlotobjectthatdescribestheareauponwhichachartisdisplayed.
h、row:Arownumberinthecurrentcolumn.Rowsarenumberedfromtoptobottombeginningwith1.column:Thecurrentdatacolumn.
i、Rowlabel:Thetextforarowlabel.ThelabelyouspecifysetsthelabelforthedatapointsidentifiedbytheRowproperty.Thislabelappearsalongthecategoryaxisformostcharttypesandisusedasthelabelforeachindividualpieinapiechart.Labeltextmaynotbedisplayedifitistoolongtofitonachart.columnlabel:.Labeltextassociatedwithacolumninthedatagrid.
j、Data:Thedatapointvalue.Ifthecurrentdatapointalreadycontainsavalue,itisreplacedbythenewvalue.Thechartisredrawntoreflectthenewvalueforthecurrentdatapoint.
k、ChartData:Atwo-dimensionalarraythatholdsthedatausedtodrawthechart.Ifthefirstseriesofamulti-dimensionalarraycontainsstrings,thosestringswillbecomethelabelsofthechart.ChartDataisthedefaultpropertyfortheMSChartcontrol.
ItissomanyproperitiesaboutMschartActivex.Ionlyintroducesomuch.Now,Iwillprovideyourtwoexampletoyou!Iwishitcanhelpyouunderstandit.
Example1:Itcomefrom:
http://www.4guysfromrolla.com/webtech/MSChartExample.shtm
<objectCLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
id="Microsoft_Licensed_Class_Manager_1_0">
<paramNAME="LPKPath"VALUE="mschart.lpk">
</object>
<OBJECTclassid="clsid:3A2B370C-BA0A-11D1-B137-0000F8753F5D"
id=mschart1style="HEIGHT:326px;WIDTH:651px"CODEBASE="mschart.cab"></OBJECT>
<scriptLANGUAGE="Vbscript">
MSChart1.ChartType=1
MSChart1.Plot.SeriesCollection(1).Pen.VtColor.Set0,0,0
MSChart1.Plot.SeriesCollection(1).Pen.Width=50
Fori=1ToMSChart1.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</p>想法是和程序员的想法不一样的.至于为什么.大家去想一想.跟心理学有关的 |
|