Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rotated cfchart 1

Status
Not open for further replies.

lucidtech

IS-IT--Management
Jan 17, 2005
267
US
I am simply trying to create a chart in CF that has a single bar and displays horizontally. Everything works great, except for the horizontal part. I can't get it to rotate. Here is the code :

<cfset thisExp = queryNew("current", "CF_SQL_INTEGER")>

<!--- add rows --->
<cfset newrow = queryaddrow(thisExp, 1)>
<!--- set values in cells --->
<cfset temp = querysetcell(thisExp, "current", "12435", 1)>
<cfset total = "22000">

<!--- Bar chart, from Query of Queries --->
<cfchart
rotated="yes"
scaleFrom=0
scaleTo=22000
foregroundcolor="##000066"
databackgroundcolor="##FFFFCC"
chartwidth="100"
>

<cfchartseries type="bar"
query="thisExp"
valuecolumn="current" />
</cfchart>


I'm sure it's something simple and stupid I am missing, but can anybody help me?
 
Don't know if you have sorted this out yet but have you tried changing the type="bar" to type="horizontalbar"?

Hope this helps!

Tony
 
Sarky78, thank you so much. I've been searching and searching for an answer to this. Changing the type to "horizontalbar" fixed the problem.

Thanks again
Al Ridley
Lucid Web Designs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top