Combining A Query And Data Points - MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual

Table of Contents

Advertisement

66
This pie chart displays the income values of four departments. Each
specifies a department's income and the corresponding item description for the
legend. The values are specified by individual ColdFusion variables. The title
"Income by Department" appears above the chart.
The
Attribute
value
item
color
URL

Combining a query and data points

To graph data from both query and individual data value, you specify the query
name and related attributes in the
points and their appearance attributes in
Data specified by a
bar chart) the data from a query.
For example, if the database is missing data for one department, you can add the
information manually:
<cfgraph type="bar"
</cfgraph>
tag lets you specify the following information about a data point:
cfgraphdata
Description
The data value to be graphed.
(Optional) The description for this data point. The item normally
appears on the horizontal axis of bar and line graphs, on the
vertical axis of horizontal bar graphs, and in the legend in pie
charts.
(Optional) The color of the bar or pie slice. Ignored for line and area
graphs.
(Optional) Works only with bar, horizontal bar, and pie charts in
Flash file format.
A URL to load when the user clicks this data point. Use this
attribute to do data drill-down from your charts.
For more information on using URLs in graphs, see "Linking
Dynamically from Graphs," on page 77.
cfgraphdata
itemColumn ="Dept_Name" valueColumn="AvgByDept"
<cfgraphdata item="Facilities" value="35000">
tag and provide the additional data
cfgraph
cfgraphdata
tag is graphed before (for example, to the left on a
title="Salaries by Department" query="DataTable"
Chapter 5 Graphing Data
cfgraph
tags.
tag

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents