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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFCHART: y-axis labels

Status
Not open for further replies.

aliashippysmom

Programmer
Jul 29, 2004
43
US
Hi! Not sure how many of you have used CFCHART. I am trying to, but I have a problem. I would like every bar labeled in my HORIZONTAL bar graph. In order to do this, I must make the graph height larger than I would like. Here is my code:
Code:
<cfchart  
   showborder="yes"
   show3D = "no"
   backgroundColor="silver"
   foregroundcolor="blue"
   chartwidth="400"
   chartheight="200"
   format="flash"
   font="arial"
   fontsize="8"
   showXGridlines="yes"
   showYGridlines="yes"
   yAxisTitle="MYTITLE"
   labelformat="percent"
   scaleTo="1"
   rotated="yes"
       
   
  >
<cfchartseries type="horizontalbar" seriesLabel="test"
colorList = "##00ff6e,blue,red,##eeff33,purple,teal,green,olive">
<cfchartdata item="Choice1" value=".60">
<cfchartdata item="Choice2" value=".40">
<cfchartdata item="Choice3" value=".30">
<cfchartdata item="Choice4" value=".10">
<cfchartdata item="Choice5" value=".20">
<cfchartdata item="Choice6" value=".05">
<cfchartdata item="Choice7" value=".10">
<cfchartdata item="Choice8" value=".30">
<cfchartdata item="Choice9" value=".10">


</cfchartseries>
</cfchart>

Results:
graph.gif

Every other horizontal bar is labeled. Fooling around with graphheight finally allows all labels to be displayed, but then the bars are really thick. Any ideas?
Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top