Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
srushing #1
Help w/ CFChart and labels
Hi folks,
I'm using CF 7 and trying to get a chart finished up. Its all working except
the labels along the Y axix. Because of the length of the label text,
sometimes it skips displaying a label.
[url]http://65.36.195.142/images/screenshot.jpg[/url]. I've got the legend showing up and
that helps but I really want the axis labels to function better.
Can I somehow control the characteristics of the text labels and maybe tilt
the axis so they don't display acroos, but up and down? Or can I change the
size?
Other ideas?
srushing Guest
-
CFCHART & VERTICAL LABELS
I love ColdFusion, and have been using it, literally, for years. And I think many aspects of the new CFMX7 are great. HOWEVER, that being said, I... -
page labels
how to use the setPageLabels using JSObject in vb .net? An error occurs while using JSO.setPageLabels(page,label) in vb.net. Please let me know... -
cfchart labels
I am missing something here. In my chart, it is not putting the labels under the bars. There is is 3 bars, and each should have a label along the... -
cfchart rotate x axis labels
This should be very easy to do. I want my x axis labels to be horizontial not vertical. How do I do this? Thanks trainmom -
CFCHART: Horizontal bar labels are squished in 7
We're looking at upgrading to CFMX 7, but we're having some issues with our initial tests (using the developer edition). My main concern right now... -
Xenotrim #2
Re: Help w/ CFChart and labels
I believe the only way to do this is to use a style and then edit the .xml file
for that style.
ie. in your cfchart tag put:
<cfchart style="silver">
then modify your C:\CFROOT\charting\styles\silver.xml file to:
<xAxis>
<labelStyle isHideOverlapped="false" orientation="horizontal" />
<titleStyle font="Arial-12-bold" isMultiline="false" />
</xAxis>
(the line you have to change is the "isHideOverlapped")
This should show every label, but they will probably be on top of each other a
bit.
Xenotrim Guest
-
Waimea Wilbur #3
Re: Help w/ CFChart and labels
I'm doing a similar bar chart but can't seem to find a way insert the labels
across the bottom like srushing does. I want to display a label for "Strongly
Agree,Agree,Neither Agree or Disagree,Disagree,Disagree Strongly" even if they
are a NULL value. The only way right now seems they each have to have one
record to display. Got an example of some code?
Waimea Wilbur Guest
-
srushing #4
Re: Help w/ CFChart and labels
Wilbur,
I had a friend send me this thread on blogspot: [url]http://cfchart.blogspot.com/[/url]
There is a reference in there to a patch for cfchart that added some options,
including a veritical style option example. Take a look there. BUt I've got
mine working although I don't have access to the code from here. If you need
my a piece of code, email me and I'll post it back here later when I'm near it.
S
srushing Guest
-
Waimea Wilbur #5
Re: Help w/ CFChart and labels
Thanks srushing, I still like to look at your code, it's how I've taught myself the most about coding is looking at examples.
Waimea Wilbur Guest
-
srushing #6
Re: Help w/ CFChart and labels
Sure. I've attached the CFCHART portions of the code. prior to that I simply
was assigning the variables var1-var13 values but the chart structure I think
it what you want. I did modify a style and change one of the parameters to
verticle for the text orientation, as the other document mentioned.
S
<div align="center">
<cfchart name="chart8" format="JPG" style="blueVert"
chartwidth="700"
chartheight="400"
show3d="true"
gridlines="11"
showxgridlines="yes"
labelformat="number"
seriesplacement="cluster"
showlegend="yes"
yAxisTitle = "Frequency"
<cfchartseries type="bar" serieslabel="Problem Areas | Office Staff">
colorlist="blue,red,yellow,green, aqua, fuchsia, teal, purple, olive, black,
maroon">
<cfchartdata item="Rude Staff" value="#var1#">
<cfchartdata item="Rude, Check-in" value="#var2#">
<cfchartdata item="Rude, Check-out" value="#var3#">
<cfchartdata item="Rude, Exam Area" value="#var4#">
<cfchartdata item="Staff Uncomfortable" value="#var5#">
<cfchartdata item="Uncomfortable at Check-in" value="#var6#">
<cfchartdata item="Uncomfortable at Check-out" value="#var7#">
<cfchartdata item="Uncomfortable in Exam Area" value="#var8#">
<cfchartdata item="Staff didn't keep you informed" value="#var9#">
<cfchartdata item="Uninformed at Check-in" value="#var10#">
<cfchartdata item="Uninformed at Check-out" value="#var11#">
<cfchartdata item="Uninformed at Exam Area" value="#var12#">
<cfchartdata item="Other" value="#var13#">
</cfchartseries>
</cfchart>
srushing Guest
-



Reply With Quote

