Posted in ColdFusion | Posted on 02-15-2008 | 5,669 views
Woohoo! I love these chart questions. I guess I'm a chart geek. Randy asks:
Is there a way for the bottom labels on a cfchart to show vertically on the graph instead of horizontal.
I bet folks know what I'm going to say. Once again, the built in chart editor comes in handy. This one was pretty simple - I just changed the XAxis/Style/Label/Orientation setting to Vertical. I grabbed the XML and edited it like so:
2<xAxis>
3<labelStyle orientation="Vertical"/>
4</xAxis>
5</frameChart>
Passing this to my chart resulted in the following:
And for comparison's sake, here is horizontal:
You also have options for Slanted and Parallel. Parallel looked mostly like Horizontal, but here is an example of Slanted:



That's the second time you've said that, but I'm not sure what it's meant to be built into...
That's very cool. Is it documented anywhere ?
I have added Yaxis title, it works fine for 2 bars, but the third bar shows to yaxis title in popup.
your help be apreciated
in spot light type: wc50.jar, click on it, the web chart should load same as PC.
@CfLoozer - got a screen shot or a reproducable case?
Thank you
<cfchart format="png" chartheight="200" scalefrom="0" labelformat="number" rotated="yes" tipstyle="mouseOver" >
<cfchartseries type="bar" serieslabel="no" >
<cfchartdata item="2000" value="200.0">
<cfchartdata item="2001" value="200.0">
<cfchartdata item="2002" value="250.0">
<cfchartdata item="2003" value="130.0">
<cfchartdata item="2004" value="450.0">
<cfchartdata item="2005" value="250.0">
</cfchartseries>
<cfchartseries type="bar" serieslabel="no" >
<cfchartdata item="2000" value="100.0">
<cfchartdata item="2001" value="100.0">
<cfchartdata item="2002" value="150.0">
<cfchartdata item="2003" value="130.0">
<cfchartdata item="2004" value="250.0">
<cfchartdata item="2005" value="150.0">
</cfchartseries>
<cfchartseries type="bar" serieslabel="Sample 1" datalabelstyle="value" markerstyle="circle">
<cfchartdata item="2000" value="150.0">
<cfchartdata item="2001" value="300.0">
<cfchartdata item="2002" value="250.0">
<cfchartdata item="2003" value="230.0">
<cfchartdata item="2004" value="250.0">
<cfchartdata item="2005" value="450.0">
</cfchartseries>
</cfchart>
I wonder if it is possible to show vertically the values of each element (enabled with datalabelstyle="value" on cfchartseries tag), because now some values are not readable.
Thank you very much.
[Add Comment] [Subscribe to Comments]