📄 readme.txt
字号:
Read Me File- ASP/VML Line Chart Version 1b -With a different page for the Line chart
------------------------------------------------
http://Designbliss.com.au/asp/chart
Info@designbliss.com.au
What is it
---------------------------------
This simple ASP file allows you to make line charts on the fly with the data coming from a form or whatever you chose. If you know abit about ASP you could create the Line Chart with Data from a database or a cookie or anything really.
IMPORTANT INFORMATION !!!!!!!!!!!!
-----------------------------------------------
This Asp file uses a Process to create the line chart called VML -(Vector Markup Lanugage) and is ONLY SUPPORTED
BY INTERNET EXPLORER 5 or above - Sorry netscape fans. Oh yes, you need an ASP type server thingie as well!
Check out how to use VML at http://msdn.microsoft.com/standards/vml/ref/ - or try http://www.asptoday.com/articles/20000505.htm
What can I do with it
-------------------------------
You can - change it
play with it
us it
give it away
You cant - Sell it
Charge for using it
Installing Information
----------------------------------
Easy, just un-zip the file and up-load to a directory of your choice- Should work straight out of the ZIP-
Files included
--------------------------------
Linechart-1.asp ~ This file is just the form for the data
linechart2.asp ~ The main VML Graphic File
transparent.gif ~ Graphic File
topgraph.gif ~ Rule Type graphic
sidegraph.gif ~ Another Rule type graphic file
remember.gif ~ Graphic File
Background Information
-------------------------------
I was reading over something on the net about A new type of graphic format called VML (Vector Markup Language)
which is written in XML- heres abit more info-
VML is a simple yet effective graphic language ideal for inserting uncomplicated graphical elements into Web documents but not really capable of replacing complex, photographic images.
So I thought, Why not use VML is create a line chat with data coming from a form on the same asp page.
Here is how its done - I have used the
<%=Request.Form("title")%> fuction in creating the points in the line chart-
As for the VML itself - firstly you have to define the html on the page using the following -
<HTML xmlns:v="urn:schemas-microsoft-com:vml">
<HEAD>
<STYLE>
v\:* {behavior:url(#default#VML);}
</STYLE>
</HEAD>
Then I used the VML to make the Line chart-
<v:polyline points="<%=Request.Form("p1x")%>pt,<%=Request.Form("p1y")%>pt,<%=Request.Form("p2x")%>pt,<%=Request.Form("p2y")%>pt,<%=Request.Form("p3x")%>pt,<%=Request.Form("p3y")%>pt,<%=Request.Form("p4x")%>pt,<%=Request.Form("p4y")%>pt,<%=Request.Form("p5x")%>pt,<%=Request.Form("p5y")%>pt,<%=Request.Form("p6x")%>pt,<%=Request.Form("p6y")%>pt"
strokecolor="<%=Request.Form("colour")%>" strokeweight="<%=Request.Form("line")%>"/>
The <%=Request.Form("p1x")%> simply takes the value from the p1x field in the form on the same page etc for p1y - There are two values for each point on the chart.
If you are looking for a good start with VML Try http://www.asptoday.com/articles/20000505.htm
Comming Soon
--------------------------
Resume Builder,
Have Fun
Adam Ware
http://Designbliss.com.au/asp
Info@designbliss.com.au
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -