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 |
|
Whether to send the chart to the user as a JPEG, PNG, or SWF file. The SWF file is the default format. |
All |
Size |
|
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 |
|
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 |
Labels |
|
The 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, may not display properly. The The The The The |
All |
Border |
|
Use the |
All |
Grid lines |
|
Use the The |
Area |
Slice style |
|
Displays the pie chart as solid or sliced. The default value is |
Pie |
Markers |
|
The The |
All |
Value axis |
|
The minimum and maximum points on the data axis. By default, the minimum is Note: If you specify a |
Area |
Axis type |
|
Whether the x-axis corresponds to a numeric scale or identifies different categories, and how to sort the items on the axis. If the If the attribute value is The |
Area |
3D appearance |
|
The The |
All |
Multiple series |
|
The The |
All |
Tips |
|
The The |
All |
You can also use the cfchartseries
tag to specify attributes of chart appearance. The following table describes these attributes:
Chart characteristic |
Attributes used | Description |
Chart type |
---|---|---|---|
Multiple series |
|
The The |
All |
Paint |
|
Specifies the way color is applied to a data series. You can specify solid color, buttonized look, linear gradient fill with a light center and darker outer edge, and gradient fill on lighter version of color. The default value is |
All |
Data point colors |
colorList |
A comma-separated list of colors to use for each data point for bar, pyramid, area, horizontalbar, cone, cylinder, step, and pie charts. 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. If you specify fewer colors than data points, the colors repeat. If you specify more colors than data points, the extra colors are not used. |
Pie |
Data markers |
markerStyle |
Specifies the shape used to mark the data point. Shapes include |
Curve |
Labels |
dataLabelStyle |
Specifies the way in which the color is applied to the item in the series Styles include |
All |