User Guide

Table Of Contents
Creating charts: examples 751
Creating charts: examples
This section contains examples of different types of charts.
Creating a bar chart
The example in the following procedure adds a title to the bar chart, specifies that the chart is
three dimensional, adds grid lines, sets the minimum and maximum y-axis values, and uses a
custom set of colors.
To enhance the bar chart:
1.
Open the chartdata.cfm file in your editor.
2.
Edit the cfchart tag so that it appears as follows:
<!--- Bar chart, from Query of Queries --->
<cfchart
scaleFrom=40000
scaleTo=100000
font="arial"
fontSize=16
gridLines=4
show3D="yes"
foregroundcolor="##000066"
databackgroundcolor="##FFFFCC"
chartwidth="450"
>
<cfchartseries
type="bar"
query="DeptSalaries"
valueColumn="AvgByDept"
itemColumn="Dept_Name"
seriescolor="##33CC99"
paintstyle="shade"
/>
</cfchart>
3.
Save the file as chartdatastyle1.cfm.
4.
View the chartdatastyle1.cfm page in your browser.
seriesLabel Elements: series:
type Type: Pie chart |
Type Frame chart: Elements: Shape: Bar | Line |
Pyramid | Area | Curve | Step | Scatter | Cone |
Cylinder | Horizontalbar |