User Guide

Table Of Contents
734 Chapter 31: Creating Charts and Graphs
Note: In two dimensions, bar and cylinder charts appear the same, as do cone and pyramid charts.
Creating a basic chart
You can create a chart in either of the following ways:
Using the cfchart, cfchartseries, and cfchartdata tags in a ColdFusion page.
Using the chart wizard that is included with the ColdFusion Report Builder. For more
information, see Chapter 32, “Creating Reports for Printing.
Creating a chart with ColdFusion tags
To create a chart with ColdFusion tags, you use the
cfchart tag along with at least one
cfchartseries tag. You can optionally include one or more cfchartdata tags within a
cfchartseries tag. The following table describes these tags:
Tag Description
cfchart
Specifies the container in which the chart appears. This container defines the
height, width, background color, labels, fonts, and other characteristics of the
chart.
You must include at least one
cfchartseries tag within the cfchart tag.
cfchartseries
Specifies a database query that supplies the data to the chart and one or more
cfchartdata tags that specify individual data points. Specifies the chart type,
colors for the chart, and other optional attributes.
cfchartdata Optionally specifies an individual data point to the cfchartseries tag.
bar cylinder
area
line
scatter
cone
curve
pyramid
stephorizontal bar
pie