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

The following code...

<!-- #include file="ColumnChart.asp" -->
<%  
valList = Array(34.3, 56.1, 87, 99.2, 32)
lblList = Array("PA","NY","NJ", "CT", "MA")
chartOpt = "FormatValue:$;LabelFontFace:Verdana;LabelFontSize:2;" & _
           "BarFontFace:Tahoma;RegKey:111-XXX-222;PlotColor:008080"
ColumnChart valList, lblList, chartOpt %>

Creates this chart...
 
$100 ---
$90 ---
$80 ---
$70 ---
$60 ---
$50 ---
$40 ---
$30 ---
$20 ---
$10 ---
 
$34.3
$56.1
$87
$99.2
$32
PA NY NJ CT MA
 
Example -- ColumnChartHREF
New in WebCharts Pro!  Creates the same high-quality column chart, but allows the columns to be hyper linked to other web pages.  Each column can be linked to a separate page.

The following code...

<!-- #include file="ColumnChart.asp" -->
<%
valList = Array(34.3, 56.1, 87, 99.2, 32)
lblList = Array("PA","NY","NJ", "CT", "MA")
chartOpt = "Caption:Sales by State;BarFontFace:Tahoma;" & _ 
           "MaxScale:200;GridColor:FF0000;" & _ 
           "LabelColor:0000FF;RegKey:111-XXX-222"
hrefList = Array("Details.asp?STATE=PA", _ 
                 "Details.asp?STATE=NY", _ 
                 "Details.asp?STATE=NJ", _ 
                 "Details.asp?STATE=CT", _ 
                 "Details.asp?STATE=MA")
ColumnChartHREF valList, lblList, hrefList, chartOpt %>

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


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