Setting Line And Area Graph Characteristics - MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual

Table of Contents

Advertisement

74

Setting line and area graph characteristics

You can specify the following additional characteristics for line-based graphs
Graph
characteristic
Value axis
Item labels
Line
characteristics
Area fill
Grid lines
Example: adding an area graph
The example in the following procedure adds an area graph showing the average
salary by start date to the salaries analysis page. It shows the use of a second query of
queries to generate a new analysis of the raw data from the GetSalaries query; in this
example, the average salary by start date. It also shows the use of additional
attributes.
To create an area graph:
1
Attributes used
scaleFrom
scaleTo
showItemLabel
itemLabelFont
itemLabelSize
itemLabelOrientation
lineColor
lineWidth
fill
gridLines
Open graphdata.cfm in ColdFusion Studio.
Chapter 5 Graphing Data
Description
The minimum and maximum points on the
vertical axis.
By default the minimum is 0 and the
maximum is the largest data value.
Labels to show on the horizontal axis of the
chart.
By default, item labels are on if you specify
an
itemColumn
(or for
) attribute. You can specify the label font
item
type (Arial, Courier, or Times), point size, and
orientation (horizontal or vertical).
These attributes specify the line format.
For the line color, you can use any of the 256
standard Web colors and any valid Web color
name notation (for example, blue or
##FF33CC). You must use double pound
signs with hexadecimal color notation. The
default line color is blue.
You can also specify the line width in pixels.
The default is 1 pixel.
Specifies whether to fill the area below the
line with the line color to form an area graph
By default there is no fill.
The number of grid lines between the top and
bottom of the graph. The value of each grid
line appears along the value axis. The
cfgraph
tag displays horizontal grids only. A
value of 0 (the default) means no grid lines.
cfgraphdata
tags,
cfgraph

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents