From: cgsj_usa on
Mike, is there anyway to add the values to bar charts? Thanks.

Chris
From: Daverms on
Chris,

Add the "xaxistitle" attribute to your <cfchart> tag like

xaxistitle="your_field_name"
From: cgsj_usa on
I've already got an xaxistitle in my cfchart tag, and for its value, I have
"Companies".

Let me explain my chart. I am graphing sales per company for a given region.
So, my query returns a list of companies and their respective market share for
the region. So, my cfchart looks like the code attached.

I would like for the percentages to show above each graph. Any help is
appreciated. Thank you.

Chris

<cfchart format="jpg" chartheight="400" chartwidth="600" scalefrom="0"
scaleto="0.9" showxgridlines="no" showygridlines="yes" gridlines="5"
showborder="no" fontbold="no" fontitalic="no" labelformat="percent"
xaxistitle="Companies" yaxistitle="Market Share" show3d="yes" rotated="no"
sortxaxis="no" showlegend="no" tipstyle="MouseOver" tipbgcolor="##FFFFCC"
showmarkers="no">

<cfchartseries type="bar" query="data4chart" itemcolumn="officename"
valuecolumn="marketshare" paintstyle="raise" colorlist="red, blue, blue, blue,
blue" />

</cfchart>

From: cgsj_usa on
I found out how to add the data labels. So, I believe that doing the opposite
might help you, dawils. I used the "datalabelstyle" attribute in the
cfchartseries tag and combined that with the style attribute in the cfchart
tag, which references a custom .xml file that includes the dataLabels tag.
There are two URLs below that helped me out a lot. I hope that this helps.
Thanks.


http://www.gpoint.com/website/WebCharts50/support/manual.jsp?chapter=manual/chap
ter06.html

and


http://www.robisen.com/index.cfm/2006/5/28/CFCHART-Disappearing-Labels-Legends-a
nd-Data-Labels