Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trend Chart

Status
Not open for further replies.

Nebooaw

Programmer
Jun 1, 2001
142
GB
Hi, i am trying to draw a trend line from values in an array...

Value x is the height

x(0) = 15
x(1) = 19
x(2) = 22

etc....


Please can some show me how i can draw a line from each point?

Is it possible to spline between each point to smooth out the graph?
Is it possible to fill the area underneath the line?


Kindest regards.
 
What is your scripting environment? WSH? IE? Something else?

You'll probably want to use a graphing component to do the work. The problem is that these are hard to use in a WSH script.

MSChart is one such ActiveX control, but it requires a developer license to build pages with it. Easiest way is to have a VB license. These components can get complicated if you want fine control over appearance too - lots of properties to set. I've used it in IE pages in the past though.

There are several 3rd party graphing controls and Java applets around too.

You could always look into "rolling your own" using VML in IE too:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top