
994
DEVELOPING
COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Las
t
upda
te
d 8/5/2010
You can also use the
cfchartseries
tag to specify attributes of chart appearance. The following table describes these
attributes:
Value axis
scaleFrom
scaleTo
The minimum and maximum points on the data axis.
By default, the minimum is 0 or the lowest negative chart data
value, and the maximum is the largest data value.
Note:
If you specify a
scaleFrom
or
scaleTo
attribute that would
result in cropping the chart,
cfchart
uses a value that shows the
entire chart without cropping.
Area
Bar
Cone
Curve
Cylinder
Horizontalbar
Line
Pyramid
Scatter
Step
Axis type
XAxisType
sortXAxis
Whether the x axis corresponds to a numeric scale or identifies
different categories, and how to sort the items on the axis.
If the
XAxisType
attribute value is
scale
, the x axis is numeric.
All
cfchartdataitem
attribute values must be numeric, and the
axis is automatically sorted numerically. The
scale
value lets you
create graphs of numeric relationships, such as population
against age.
If the attribute value is
category
(the default), the axis indicates
the data category.
The
sortXAxis
attribute determines the order of items when
you specify the
cfchartdataitem
attribute, whose values are
treated as text. By default, the items are displayed in the order in
which they are entered in the first chart series.
Area
Bar
Cone
Curve
Cylinder
Horizontalbar
Line
Pyramid
Scatter
Step
3D appearance
show3D
xOffset
yOffset
The
show3D
attribute displays the chart in three dimensions. The
default value is
no
.
The
xOffset
and
yOffset
attributes specify the amount by
which to rotate the chart on a horizontal axis (
xOffset
) or vertical
axis (
yOffset
). The value 0 is flat (no rotation), -1 and 1 are for a
full 90 degree rotation left.
(
-1
) or right (
1
). The default value is 0.1
All
Multiple series
showLegend
seriesPlacement
The
showLegend
attribute lets you display the chart legend when
the chart contains more than one series of data. The default value
is
Yes
.
The
seriesPlacement
attribute specifies the location of each
series relative to the others. By default, ColdFusion determines the
best placement based on the graph type of each series.
All
Tips
tipStyle
tipBGColor
The
tipStyle
attribute lets you display a small pop-up window
that shows information about the chart element pointed to by the
mouse pointer. Options are
none
,
mousedown
, or
mouseover
.
The default value is
mouseover
.
The
tipBGColor
attribute specifies the background color of the
tip window for Flash format only. The default value is
white
.
All
Chart characteristic
Attributes used
Description
Chart type