Site hosted by Angelfire.com: Build your free website today!

An ASP Graphing Include

Introduction

  1. The includeGraph.asp include implements server-side graphing functionality that can be incorporated into any ASP-based web site. It does graphs by converting its input data into HTML that, when interpreted by the browser, display the graphs. It requires no server-side components. It requires no client-side plug-ins.
     
  2. The following graph types are supported (a star - or even worse, two stars - next to a graph type indicates that it requires a very heavy page weight, and so is suited only for intranets):
     
    1. Bar graphs
    2. Stacked bar graphs
    3. Stacked Area graphs(**)
    4. Line graphs(*)
    5. X/Y Scatter Graphs
    6. Pie graphs(**)
    7. Gantt Charts

    Graph features include:
    1. Automatic Scaling
    2. Labeling of Axes
    3. Support for onclick
    4. Support for TITLE on points
    5. Controlling where the
      graph appears
    6. Colouring of series
    7. Displaying Legends
    8. Displaying data with gaps

  1. You do not need to scale your coordinates for the graphing routines. They can scale them for you.
  2. With a little trickery it is possible to display graphs on top of others, to mix graph types, so you could combine,say, bar and line charts.
  3. You can set where the graph will be displayed. Using this feature you can display multiple graphs on the same page
  4. You can assign hyperlinks to graphing elements (such as points in an X/Y scatter graph, or bars in a bar graph). This is not possible with most of the graphing packages that work through server-side graphing COM components.

Example Graphs

Stacked Picture Bar

Note that in the IE version of this example the images used to display each series are "lined up" so that when they appear next to one another they display a sort of "window" on the actual image.

Line Graph

Here you can see that I still have some work to do with axes that are displaying dates.
13/02
14/02
15/02
16/02
17/02

Date

A
B
C
D

Task

James
Rhino
The Cat