|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
CFChart, CFChartSeries with ItemColumn and ValueColumn
Author: vidya yegnaraman
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:61023#331595
Hi,
I am using cfchart to plot a graph. It pulls data from the database for the plot
values. The value from the database columns is fed as the value for the
attributes itemcolumn and valuecolumn.
Since, it take the db values, the graph units for the x axis and y axis come as
some float numbers. But I would like to have the units like some numbers divisble
by 5 or 4 with no remainders.
But I am not sure how to give the units(divisible by 4 or 5) for the x and y axis
and still have the values from the database to the actual plot points.
The chartseries type is scatter.
Below is a snippet of code.
<cfchart
format="jpg"
seriesplacement="default"
xaxistitle="Business Days"
yaxistitle="Total Requests"
title="Requests Log"
font="Arial"
gridlines=6
showXGridlines="yes"
showYGridlines="yes"
>
<cfchartseries
type="scatter"
<!--- serieslabel="Total number of consults"--->
query="sqlGetSummation"
itemColumn="Business Days"
valueColumn="Total Requests"
seriescolor="##FF00FF" />
</cfchart>
|
July 31, 2010
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||