
991
DEVELOPING
COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Las
t
upda
te
d 8/5/2010
<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.
4
Return to your browser and view the chart2queries.cfm page.
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
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...