Adobe COLDFUSION 9 Manual page 997

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
• yellow
To use any of these styles, specify the style using the
illustrates using the
style:
beige
<cfchart style="beige">
<cfchartseries type="pie">
<cfchartdata item="New car sales" value="50000">
<cfchartdata item="Used car sales" value="25000">
<cfchartdata item="Leasing" value="30000">
<cfchartdata item="Service" value="40000">
</cfchartseries>
</cfchart>
You can specify the appearance of charts by using the attributes of the
You can optionally specify the following characteristics to the
Chart characteristic
Attributes used
File type
format
Size
chartWidth
chartHeight
Color
foregroundColor
dataBackgroundColor
backgroundColor
attribute of the
style
cfchart
tag on the types of charts indicated:
cfchart
Description
Whether to send the chart to the user as a JPEG, PNG, or SWF file.
The SWF file is the default format.
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.
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, use double number
signs; for example, blue or ##FF33CC. To specify the color and
transparency, use the format ##xxFF33CC, where xx indicates the
transparency. The value FF indicates opaque; the value 00
indicates transparent. For the complete list of colors, see
Configuring and Administering ColdFusion.
Last updated 8/5/2010
tag. The following example
cfchart
and
tags.
cfchartseries
Chart type
All
All
All
992

Advertisement

Table of Contents
loading

Table of Contents