Adobe COLDFUSION 9 Manual page 996

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
<cfchart
backgroundColor="white"
xAxisTitle="Department"
yAxisTitle="Salary Average"
font="Arial"
gridlines=6
showXGridlines="yes"
showYGridlines="yes"
showborder="yes"
>
<cfchartseries
type="line"
seriesColor="blue"
paintStyle="plain"
seriesLabel="Contract Salaries"
>
<cfchartdata item="HR" value=70000>
<cfchartdata item="Marketing" value=95000>
<cfchartdata item="Sales" value=80000>
<cfchartdata item="Training" value=93000>
</cfchartseries>
<cfchartseries
type="bar"
query="DeptSalaries"
valueColumn="AvgByDept"
itemColumn="Dept_Name"
seriesColor="gray"
paintStyle="plain"
seriesLabel="Dept. Average Salaries"
/>
</cfchart>
3
Save the file as chart2queries.cfm in the myapps directory under the web root directory.
Return to your browser and view the chart2queries.cfm page.
4
Controlling chart appearance
You can control the appearance of charts by doing any of the following:
• Using the default chart styles included with ColdFusion
• Using the attributes of the cfchart and cfchartseries tags
• Creating your own chart styles
Using the default chart styles included with ColdFusion
ColdFusion supplies the following chart styles:
• beige
• blue
• default
• red
• silver
Last updated 8/5/2010
991

Advertisement

Table of Contents
loading

Table of Contents