If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > How can I change color of columns of a Graph

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-30-03, 08:47
liorlank liorlank is offline
Registered User
 
Join Date: Nov 2003
Posts: 22
How can I change color of columns of a Graph

I have a graph:
<%
Set oChart = CreateObject("OWC.Chart")
Set c = oChart.Constants

oChart.Charts.Add
oChart.Charts(0).Type = oChart.Constants.chChartTypeColumnClustered
%>

How can I change the color of the columns???
What is the code??
Reply With Quote
  #2 (permalink)  
Old 12-10-03, 08:30
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
I'm not sure what OWC is but I've got a free barchart ASP class (no components) downloadable from my Web site at http://www.bullschmidt.com/barchart.asp to help turn data stored in a table (or SQL statement) into a barchart and you can explicitly set the colors of the bars or else just use the default colors:

' Fill aChartSeriesColor.
aChartSeriesColor(0) = "#0000FF" ' Could put in something like "blue".
aChartSeriesColor(1) = "#CC0000" ' Could put in something like "red".
aChartSeriesColor(2) = "#FF9933" ' Could put in something like "orange".
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On