User Guide

Table Of Contents
Controlling chart appearance 743
</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 a number of chart styles. These styles include:
beige
blue
default
red
silver
yellow
To use any of these styles, specify the style using the
style attribute of the cfchart tag. The
following example illustrates using the
beige style:
<cfchart style="beige">
<cfchartseries type="pie">
<cfchartdata item="New car sales" value="50000">
<cfchartdata item="Used car sales" value="25000">
<cfchartdata item="Leasing" value="30000">
<cfchartdata item="Service" value="40000">
</cfchartseries>
</cfchart>