User Guide

Table Of Contents
733
CHAPTER 31
Creating Charts and Graphs
This chapter explains how to use the cfchart tag to display charts and graphs. It describes ways
that you can chart data and the tools you need to create effective charts.
Contents
About charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 733
Creating a basic chart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 734
Charting data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 735
Controlling chart appearance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 743
Creating charts: examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 751
Administering charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 756
Writing a chart to a variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 756
Linking charts to URLs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 758
About charts
The ability to display data in a chart or graph can make data interpretation much easier. Rather
than present a simple table of numeric data, you can display a bar, pie, line, or other applicable
type of chart using colors, captions, and a two-dimensional or three-dimensional representation
of your data.
The
cfchart tag, along with the cfchartseries and cfchartdata tags, provide many different
chart types. The attributes to these tags let you customize your chart appearance.
You can create 11 types of charts in Macromedia ColdFusion MX 7 in two and three dimensions.
The following figure shows a sample of each type of chart.