Controlling Graph Appearance
Controlling Graph Appearance
The
ways.
Common graph characteristics
You can optionally specify the following characteristics on all types of graphs:
Graph
characteristic Attributes used
Title
File Type
Dimensions
Background
Border
3D
Appearance
tag allows you to customize the appearance of your graph in many
cfgraph
title
titleFont
fileFormat
graphWidth
graphHeight
backgroundColor
borderWidth
borderColor
depth
Description
The title to display on the graph and the font to
use.
Whether to send the graph to the user as a jpeg
or Flash (.swf) file. Flash is the default format.
On pie and bar charts, Flash supports rollover
display of data values and data drill-down by
clicking on the data point (using the
attribute).
The width and height in pixels of the graph. This
size defines the entire graph area, including the
legend and background area around the graph.
You cannot use these attributes to change the
ratio of the data area height to width. For
example, you cannot set a large
value to stretch just the horizontal dimension. To
change the overall graph size, specify both the
and
graphHeight
graphWidth
The background color to use for the entire graph
area, including legends and margins. You can
specify any of the standard 256 Web colors. You
can use any valid HTML color format. If you use
the numeric format, you must use double pound
signs, for example, ##CCFFFF.
The border that surrounds the graph. You specify
the width in pixels and the color using any valid
HTML color format, as described for the
backgroundColor
. A value of 0 means no
border.
The depth of the shading that gives the graph
three-dimensional appearance, in pixels. A value
of 0 (the default) means no 3D appearance.
67
URLColumn
graphWidth
.
Need help?
Do you have a question about the COLDFUSION 5-DEVELOPING and is the answer not in the manual?
Questions and answers