ASP implementation K-line map (online)

Source: Internet
Author: User
Tags array contains html page insert
K Line Chart | Online can consider the use of MSChart, but the disadvantage is that the display is not very good-looking, not very professional, at the same time, if the client did not install the words will be more trouble, because the display does not come out, so the general site are used to generate pictures of the way. Here are some things to MSChart, you can consider using them, I have not used other controls, so I can not give you a satisfactory answer. Also attached to you a Web site, www.tjinfo.com, there is a survey, the use of MSChart, but no polyline, this you can define your own, CSDN survey also used MSChart.
=================================================================
Look at my summary, you will benefit!
Instructions for MSChart documentation

MSChart is a powerful charting tool made by Microsoft, which makes it easy to build various charts. Make a variety of 3-D 2-D histogram, line chart. Combined with my knowledge of the MSChart component for some time, talk about how to use the MSChart component.
1. Chart ActiveX Controls:
In the HTML page, insert a <OBJECT> tag for the License Manager OBJECT before no other <OBJECT> tags. The License Manager is, ActiveX control, installed with Internet Explorer.
Note:this CLASSID, "5220cb21-c88d-11cf-b347-00aa00a28331", is for the License Manager and not for your ActiveX controls. You are must use the same CLASSID every the refer file. In addition, your should keep the Name property of the <PARAM> tag as "LPKPath", and set the ' Value ' for the ' & Lt param> tag of the License Manager object to the LPK file name and path. This path may is a relative path but must not refer to a UNC share or a URL on another domain.
Because can only have one LPK a file for each HTML page, make sure so you include all of the licensed ActiveX Controls For the page, 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, a HTML page that displays the Microsoft Masked Edit control looks like this.
Here I downloaded the "file Mschart.cab from Microsoft" 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>
Can look at this acticle if you need help.
Http://support.microsoft.com/support/kb/articles/Q159/9/23.ASP
2. Introduction to some common properties of MSChart components
A, ChartType: Types of graphics
Charttype=0> three-dimensional histogram
Charttype=1> Two-dimensional histogram
Charttype=2> three-dimensional line chart
Charttype=3> two-dimensional line chart
Charttype=4> three-dimensional area map
Charttype=5> Two-dimensional area map
Charttype=14> Pie Chart
B, ShowLegend: Whether to show the commentary
C, TitleText: Title
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, describes the area upon which a chart is displayed.
H, row:a row number in the current column. Rows are numbered from 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 are used as the label for each individual pie in a pie Chart. Label text may isn't displayed if it is too long to fit on a chart.columnlabel:. The 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's 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 series of a multi-dimensional array contains strings, those strings'll become the labels of the chart. ChartData is the ' default ' for the ' MSChart control.
It is so many properities about Mschart activex.i only introduce so much. Now,i'll 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



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.