Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 992

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
<!--- Bar chart, from DeptSalaries Query of Queries. --->
<cfchart
xAxisTitle="Department"
yAxisTitle="Salary Average"
font="Arial"
gridlines=6
showXGridlines="yes"
showYGridlines="yes"
showborder="yes"
show3d="yes"
>
<cfchartseries
type="bar"
query="DeptSalaries"
valueColumn="AvgByDept"
itemColumn="Dept_Name"
seriesColor="olive"
paintStyle="plain"
/>
</cfchart>
<br>
</body>
</html>
Save the page as chartdata.cfm in the myapps directory under the web root directory. For example, the directory
2
path in Windows could be C:\Inetpub\wwwroot\myapps.
Return to your browser and enter the following URL to view the chartdata.cfm page:
3
http://localhost/myapps/chartdata.cfm
Note: If a query contains two rows with the same value for the
the query for that value. For the preceding example, if the query contains two rows for the Sales department, ColdFusion
graphs the value for the last row in the query for Sales.
Reviewing the code
The following table describes the code and its function:
itemColumn
Last updated 1/20/2012
attribute, ColdFusion graphs the last row in
987

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents