User Guide

Table Of Contents
744 Chapter 31: Creating Charts and Graphs
Using the attributes of the cfchart and cfchartseries tags
You can specify the appearance of charts by using the attributes of the
cfchart and
cfchartseries tags.
You can optionally specify the following characteristics to the
cfchart tag on the types of charts
indicated:
Chart
characteristic
Attributes used Description Chart
type
File type
format
Whether to send the chart to the user
as a JPEG, PNG, or SWF file. The
SWF file is the default format.
All
Size
chartWidth
chartHeight
The width and height, in pixels, of the
chart. This size defines the entire chart
area, including the legend and
background area around the chart.
The default height is 240 pixels; the
default width is 320 pixels.
All
Color
foregroundColor
dataBackgroundColor
backgroundColor
The colors used for foreground and
background objects.
The default foreground color is black;
the default background colors are
white.
You can specify 16 color names, use
any valid HTML color format, or specify
an 8-digit hexadecimal value to specify
the RGB value and transparency. If you
use numeric format, you must use
double number signs; for example, blue
or ##FF33CC. To specify the color
and transparency, use the format
##xxFF33CC, where xx indicates the
transparency. Opaque is indicated by
the value FF; transparent is indicated
by the value 00. For the complete list
of colors, see Configuring and
Administering ColdFusion MX.
All