The cfgraph
tag provides five graph types. A large number of attributes let you customize the graph appearance to meet your needs.
You can create the following types of graphs:
The following illustrations show one sample of each type of graph:
You use the following cfgraph
attributes to create a basic graph:
You must end your cfgraph
tag with a </cfgraph>
end tag.
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" query="DataTable" valueColumn="AvgByDept" itemColumn="Dept_Name">
</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.