PCS WebCharts©
Professional Computing Solutions, Inc.
Example -- BarChart
A traditional bar chart -- specify values for individual categories and then display them in comparison to each other using horizontal bars.  The example below shows the amount of sales made in five different states.
Go Back

The following code...

<!-- #include file="BarChart.asp" -->
<%
valList = Array(34.3, 56.1, 87, 99.2, 32)
lblList = Array("PA","NY","NJ", "CT", "MA")
chartOpt = "Caption:Sales by State;MaxScale:200;GridColor:FF0000;LabelColor:0000FF"

BarChart valList, lblList, chartOpt

Creates this chart...

Sales by State
PA  
34.3
NY  
56.1
NJ  
87
CT  
99.2
MA  
32
  20 40 60 80 100 120 140 160 180 200


Send comments or questions on this page to webmaster@thePCSweb.com
Copyright © 1999-2008 Professional Computing Solutions, Inc.