Building Simple Charts
Now that you have an idea of what you can do with ColdFusion’s charting features, let’s get started with some basic examples. Most of the time, you will create charts with just two CFML tags, <cfchart> and <cfchartseries>.
Introducing <cfchart> and <cfchartseries>
To display a chart on a ColdFusion page, you use the <cfchart> tag. This tag controls the height, width, and formatting of your chart, but it doesn’t display anything. Within the <cfchart> tag, you use the <cfchartseries> tag, which determines the type of chart (like bar or pie) and the actual data to show on the chart.
Note
Actually, you will occasionally want to place multiple <cfchartseries> tags within a <cfchart> tag. See the “Combining Multiple Chart Series ...
Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.