tjek
http://www.burningice.dk/skolen/matematik-projekt/graph.aspsourcen:
<%
\' Dette eksempel er lavet af Christian C. Rasmussen (ccr@ccr.dk)
Buffer=True
Dim CrLf
CrLf =Chr(13)+Chr(10)
Sub CreateGraph(DataArray,XlabelsArray, LegendLabelsArray, Xdim,LegendDim,GraphHeader)
Response.write \"<table border=\'2\' cellpadding=\'0\' cellspacing=\'0\'>\"+CrLf
\' Write Graph header in table row One
Response.write \"<tr><td colspan=\'2\'>\"+GraphHeader+\"</td></tr>\"+CrLf
Response.write \"<tr>\"+CrLf
Response.Write \"<td bgcolor=\'#FFFFFF\'>\"+CrLf
\'Create IE 3.0 Graph object
Response.Write \"<object classid=\'clsid:FC25B780-75BE-11CF-8B01-444553540000\' CODEBASE=\'
http://activex.microsoft.com/controls/iexplorer/iechart.ocx#Version=4,70,0,1161\' TYPE=\'application/x-oleobject\' id=\'Chart1\' width=\'760\' height=\'500\' align=\'center\' hspace=\'0\' vspace=\'0\'>\"+CrLf
Response.Write \"<param name=_extentX\' value=\'760\'>\"+CrLf
Response.Write \"<param name=\'_extentY\' value=\'500\'>\"+CrLf
Response.Write \"<param name=\'ChartStyle\' value=\'1\'>\"+CrLf
Response.Write \"<param name=\'ChartType\' value=\'5\'>\"+CrLf
Response.Write \"<param name=\'hgridStyle\' value=\'1\'>\"+CrLf
Response.Write \"<param name=\'vgridStyle\' value=\'1\'>\"+CrLf
Response.Write \"<param name=\'colorscheme\' value=\'2\'>\"+CrLf
Response.Write \"<param name=\'rows\' value=\'\"+CStr(xdim)+\"\'>\"+CrLf
Response.Write \"<param name=\'columns\' value=\'\"+CStr(LegendDim)+\"\'>\"+CrLf
Response.Write \"<param name =\'DisplayLegend\' VALUE=\'1\'>\"+CrLf
Response.write \"<param name=\'columnnames\' VALUE=\'\"
For a=1 To LegendDim
Response.write Trim(LegendLabelsArray(a))+\" \"
Next
Response.write \"\'>\"+CrLf
Response.write \"<param name=\'Rownames\' value=\'\"
For a=1 to Xdim
Response.write XlabelsArray(a)+\" \"
next
Response.write \"\'>\"+CrLf
For a=1 TO LegendDim
For b=1 To Xdim
Response.write \"<param name=\'data[\"+CStr(b-1)+\"][\"+CStr(a-1)+\"]\' value=\'\"+CStr(DataArray(b,a))+\"\'>\"+CrLf
Next
Next
Response.write \"<param name=\'BackStyle\' value=\'1\'>\"+CrLf
Response.write \"</object>\"+CrLf
Response.write \"</td>\"+CrLf
Response.write \"</tr>\"+CrLf
Response.write \"</table>\"+CrLf
End sub
%>
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">
<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">
<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">
<title>Test Graph modul</title>
</head>
<body>
<%
Dim VarDataArray(2,2)
Dim VarXlabelsArray(2)
Dim VarLegendLabelsArray(2)
\' Fill in the data you want to show in a array
VarDataArray(1,1)=0
VarDataArray(2,1)=4650
VarDataArray(1,2)=0
VarDataArray(2,2)=5050
\'VarDataArray(1,3)=300
\'VarDataArray(2,3)=200
\'VarDataArray(3,3)=100
\' Set X labels in a array
VarXlabelsArray(1)=\"0\"
VarXlabelsArray(2)=\"10000\"
\' Set legends
VarLegendLabelsArray(1)=\"Avis\"
VarLegendLabelsArray(2)=\"Hertz\"
\'Set dim paa graph
VarXdim=2
LegendDim=2
\'Give the graph a name
VarGraphHeader=\"Sammenligning af pris\"
\'Draw the graph
CreateGraph VarDataArray, VarXlabelsArray, VarLegendLabelsArray, VarXdim, LegendDim, VarGraphHeader%>
</body></html>