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

Overview of Graphing Articles

Introduction

Articles

  1. An ASP graphing include
    This article provides working demonstrations of graphs generated by an ASP graphing include that I have written. The source code of the include is also available, as a text file, with a test script that feeds it canned data, allowing you to view several different types of graph.
    There are also links to some graph types that - at present - require large page sizes.
    The article discusses some of the limitations of the graphing include, and talks about some of the directions I am considering taking it.
     
  2. Graphing in HTML
    This article (not written yet) is to provide an introduction to the rendering techniques used in the ASP graphing include from article#1. It discusses in detail how, for example, you might go about
    1. Adding labels and captions to your graphs
    2. Plotting bar charts with multiple series
    3. Plotting X/Y scatter graphs
    4. Plotting lines in HTML
    5. Plotting non-rectangular shapes
    6. Plotting stacked area graphs
    7. Plotting pie charts
    8. Plotting arbitraty shapes
    The focus here is on what you have to tell the browser to do. The next article discusses how you might go from raw data to scaled and labelled graphs.
     
  3. Implementation Details
    This article discusses the implementation details of the graphing include provided in article#1. In turn, it discusses such features as
    1. How to scale data for plotting
    2. How to render axes and grid lines
    3. How to assign labels to axes or data points
    4. How stacked area charting scan-lines are calculated
    5. How pie chart scan-lines are calculated
    6. Cross-browser rendering differences and issues
    7. How to render multiple series on one chart

    There is also some discussion of techniques that are not directly related to graphing, but have a more general application (each of these is used in the include):
    1. Passing functions VB expressions to be evaluated later
    2. Array primitives
    3. Routines for modifying columns of an array
    4. Routines for sorting arrays
    5. Routines for finding distinct values in a column

  4. Javascript Graphing Functions
    This (planned) article is to discuss the issues involved in implementing graphing functionality, in client-side Javascript. Surprisingly, it is not much more difficult to implement graphing in Javascript. Where the ASP version writes HTML to the Response, the client-side javascript version would write HTML to either a DIV tag (in Internet Explorer) or to the document of the corresponding LAYER (in Netscape).
    Client-side graphing would have a number of advantages:
    1. Average page weight would decrease, particularly for line, pie, and stacked area graphs
    2. It would be possible to change the graph type, on the client, without a round trip to the server.
    3. With some tweaking, and additional code, it would be possible to provide functionality like "zoom in" and "zoom out". It would also be possible to apply filters to graphs, and to switch graphing layers on and off (for example, in a line+point graph you'd be able to turn off the lines, or turn off the points, at will).