Creating a Graph
Creating a basic graph
You use the following
Attribute
type
query
valueColumn
itemColumn
You must end your
For example, if you have a query that contains average salary by department, the
following tag displays a bar graph with the information:
<cfgraph type="bar"
</cfgraph>
The resulting graph looks like this:
Later sections in this chapter provide information on how you can specify the data
differently and how you can change and enhance graph appearance.
cfgraph
Description
Must be one of the following values:
. (An area graph is a kind of line graph.)
line
The query containing the data.
The query column containing the values to be graphed.
(Optional) The query column containing the description for this data
point. The item normally appears on the horizontal axis of bar and
line graphs, and in pie charts.
tag with a
cfgraph
query="DataTable"
valueColumn="AvgByDept"
itemColumn="Dept_Name">
attributes to create a basic graph:
end tag.
</cfgraph>
,
,
bar
horizontalbar
61
, or
pie
Need help?
Do you have a question about the COLDFUSION 5-DEVELOPING and is the answer not in the manual?
Questions and answers