Name
cfchart
Synopsis
<cfchart> <cfchartseries> [<cfchartdata>] ... </cfchartseries> ... </cfchart>
Container tag for rendering graphs and charts in ColdFusion MX.
cfchart
is used in conjunction with
cfchartseries
and, optionally,
cfchartdata
to draw several chart types including
Area
, Bar
(vertical and
horizontal), Cone
, Curve
,
Cylinder
, Line
,
Pie
, Pyramid
,
Scatter
, and Step
. Both 2D and
3D versions of most types can be rendered.
Attributes
-
backgroundcolor="
Hex
|
Web_Color_Name
"
Color for the background area behind the chart. Colors are specified using the same rules as the
foregroundcolor
attribute. Optional. The default isWhite
.-
chartheight="
Height_in_Pixels
"
Height in pixels for the chart. Optional. The default is 240.
-
chartwidth="
Height_in_Pixels
"
Width in pixels for the chart. Optional. The default is 320.
-
databackgroundcolor="
Hex
|
Web_Color_Name
"
Background color for the chart’s data area. Colors are specified using the same rules as the
foregroundcolor
attribute. Optional. The default isWhite
.-
foregroundcolor="
Hex
|
Web_Color_Name
"
Color for text, gridlines, and labels. Colors may be specified by using one of the 16 available web color names:
Aqua
(##00FFFF),Black
(##000000),Blue
(##0000FF),Fuchsia
(##FF00FF),Gray
(##808080),Green
(##008000),Lime
(##00FF00),Maroon
(##800000),Navy
(##000080),Olive
(##808000),Purple
(##800080),Red
(##FF0000),Silver
(##C0C0C0),Teal
(##008080),White
(##FFFFFF),Yellow
(##FFFF00); or hex code in the form##FFFFCC
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.