| Contents > Developing ColdFusion MX Applications > Charting and Graphing Data > Controlling chart appearance > Common chart characteristics |
|
|
|
|
||
You can optionally specify the following characteristics to cfchart on all types of charts:
Chart characteristic |
|
|
|---|---|---|
File type |
format |
Whether to send the chart to the user as a JPG, PNG, or Flash Movie (.swf) file. Flash is the default format. |
Dimensions |
chartWidth |
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. |
Foreground and background color |
foregroundColor |
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 or use any valid HTML color format. If you use the numeric format, you must use double pound signs, for example, blue or ##FF33CC. For the complete list of colors, see Configuring and Administering ColdFusion MX. |
Border |
showBorder |
Specifies to draw a border around the chart. The border color is the same as specified by the |
Labels |
font |
|
3D Appearance |
show3D |
|
Rotation |
rotated |
Rotates the entire chart 90 degrees. Set to yes to create a horizontal chart, such as a horizontal bar chart. Default is no. |
Multiple series |
showLegend |
|
Tips |
tipStyle |
|
Markers |
showMarkers |
|
You can also use the cfchartseries tag to specify attributes of chart appearance. The following table describes these attributes:
Chart |
|
|
|---|---|---|
Multiple series |
seriesLabel |
|
Paint |
paintStyle |
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. Default is solid. |
Data markers |
markerStyle |
For line, curve, and scatter charts, specifies the shape used to mark the data point. Supported for 2-dimensional charts. Default is rectangle. |
|
|
||
| Contents > Developing ColdFusion MX Applications > Charting and Graphing Data > Controlling chart appearance > Common chart characteristics |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.