You can create an XML definition file using the cfchart wizard tool (can't
remember the exact name). It will come up with something like this. You
can see orientation="Slanted" on row 5. There are heaps of options, and
I've not found a good reference guide to them, so I just use the wizard.
<?xml version="1.0" encoding="UTF-8"?>
<frameChart is3D="false">
<frame xDepth="12" yDepth="11" outline="black"/>
<xAxis isAntialiased="true">
<labelStyle orientation="Slanted" color="black"/>
</xAxis>
<yAxis scaleMin="0" isAntialiased="true">
<labelStyle color="black"/>
</yAxis>
<legend allowSpan="true" equalCols="false"
placement="Bottom" halign="Right" isAntialiased="true"
isMultiline="true">
<decoration style="None"/>
</legend>
<elements place="Stacked" drawShadow="true">
<morph morph="Grow"/>
</elements>
<decoration style="RoundShadow"/>
<paint palette="Fiesta" isVertical="true" min="47" max="83"/>
<insets right="5"/>
</frameChart>
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Seona Bellamy
Sent: Wednesday, 12 November 2008 1:19 PM
To: CFAussie
Subject: [cfaussie] Orientation of x-axis labels in a bar graph
Hi guys,
Just a quick one hopefully.
I've got some bar charts that chart the frequency of particular
domains in a resultset. Needless to say, some of these can be fairly
long. Is there a way to turn the label on the x-axis so that they read
vertically instead of horizontally? Or any other way to easily get
them to all display neatly? At the moment I'm getting a maximum of 3
out of the 10 displaying (usually it's only 2), which makes the chart
pretty much useless.
I've done some searching and found some solutions that involve
creating an xml file containing something along the lines of:
<xAxis>
<labelStyle isHideOverlapped="true" orientation="Vertical" />
</xAxis>
But when I try to pull this xml in through the style attribute I get
an error saying that "xAxis" is not a recognised property.
In case it makes a difference:
- the graph is being output as a JPG instead of Flash, as it's being
incorporated into a PDF report
- we're using CF 7 at the moment (although trying to swing an upgrade to 8)
Cheers,
Seona.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---