
993
DEVELOPING
COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Las
t
upda
te
d 8/5/2010
Labels
font
fontSize
fontBold
frontItalic
labelFormat
xAxisTitle
yAxisTitle
The
font
attribute specifies the font for all text. The default value
is
Arial
. If you are using a double-byte character set on UNIX, or
using a double-byte character set in Windows with a file type of
Flash, specify
ArialUnicodeMs
as the font.
Note:
If a chart attempts to use a font that is not installed on the
ColdFusion server, it uses a different font that is available. Also, if
you do not specify the font, characters that are not ASCII, such as
Japanese, Chinese, Korean, and so on, can display improperly.
The
fontSize
specifies an Integer font size used for all text. The
default value is 11.
The
fontBold
attribute specifies to display all text as bold. The
default value is
no
.
The
fontItalic
attribute specifies to display all text as italic. The
default value is
no
.
The
labelFormat
attribute specifies the format of the y-axis
labels, number, currency, percent, or date. The default value is
number
.
The
xAxisTitle
and
yAxisTitle
attributes specify the title for
each axis.
All
Border
showBorder
Use the
showBorder
attribute to draw a border around the chart.
The
foregroundColor
attribute specifies the border color. The
default value is
no
.
All
Grid lines
showXGridlines
showYGridlines
gridLines
Use the
showXGridlines
and
showYGridlines
attributes to
display x-axis and y-axis grid lines. The default value
no
for x-axis
gridlines, and
yes
for y-axis gridlines.
The
gridLines
attribute specifies the total number of grid lines
on the value axis, including the axis itself. The value of each grid
line appears along the value axis. The
cfchart
tag displays
horizontal grid lines only. The default value is 0, which means no
grid lines.
Area
Bar
Cone
Curve
Cylinder
Horizontalbar
Line
Pyramid
Scatter
Step
Slice style
pieSliceStyle
Displays the pie chart as solid or sliced. The default value is
sliced
.
Pie
Markers
showMarkers
markerSize
The
showMarkers
attribute displays markers at the data points
for two-dimensional line, curve, and scatter charts. The default
value is
yes
.
The
markerSize
attribute specifies an integer number of pixels
for the marker size. ColdFusion determines the default value.
All
Chart characteristic
Attributes used
Description
Chart type