Reply to topic
OK - I'm there
2onboard


Joined: 30 Apr 2009
Posts: 14
Reply with quote
follow up question
Do you know the default colors that CF uses for the color of each bar?
(orange, green, blue, tanish, greyblue)

If I had 5 cfchartseries, I could control the color, but just looping through 1 I don't. I can't user seriesColor as that applies the same color to all bars. I can't use colorList as that doesn't apply to bar charts.

http://www.pfrentals.com/test.cfm
cfsearching


Joined: 27 Jul 2008
Posts: 29
Reply with quote
It is controlled by an xml file. IIRC, the default for bar charts is C:\ColdFusion8\charting\styles\default.xml . In the file it defines colors for series 0 through 27

Code:

<series index="0">
    <paint color="#E48701"/>
</series>


You can make a copy of the xml file and customize the colors. Then place the xml file in one of your web directories and call it using cfchart's style attribute.

Code:

<cfchart style="myBarChartStyles.xml">
...
2onboard


Joined: 30 Apr 2009
Posts: 14
Reply with quote
cool - thanks

THANK YOU! for all your time and help, believe it or not I did learn a thing or two
cfsearching


Joined: 27 Jul 2008
Posts: 29
Reply with quote
You are welcome. If you are ever curious about the charting engine CF uses, try out the built in WebCharts3D utility. It is an interesting tool.

C:\ColdFusion8\charting\webcharts.bat
http://livedocs.adobe.com/coldfusion/8/htmldocs/graphing_06.html
2onboard


Joined: 30 Apr 2009
Posts: 14
Reply with quote
Unfortunatly, I don't think I have access to it, at least that is what a HostMySite tech support person told me once upon a time when I asked about it. I wish I did, I've used it in the past and it really helped.
cfsearching


Joined: 27 Jul 2008
Posts: 29
Reply with quote
Yes, I would be very surprised if a host allowed you access to their copy. But you can at least test it locally. Assuming you have the CF8 developer version installed on your computer.
error with chart
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 2 of 2  

  
  
 Reply to topic