You can create your own chart styles by doing either of the following:
You can modify the chart styles included with ColdFusion to create your own chart styles. The files that contain the style information are XML files located in the cf_root\charting\styles directory. You should only modify attributes specified in the file. To specify additional attributes, follow the instructions in the section Using WebCharts3D to create chart styles.
Note: There are two XML files for each default chart style. For example, the beige style for pie charts is defined in the beige_pie.xml file; the beige style for all other types of charts is defined in the beige.xml file.
ColdFusion MX 7 includes the WebCharts3D utility, which you can use to create chart style files.
Note: To use the chart style file in the cfchart
tag, you can only make the modifications indicated in the table that follows this procedure.
Note: ColdFusion uses the same rules to look for the chart style XML files as it does for files included using the cfinclude
tag. For more information, see cfinclude
.
The following table lists the attributes of the cfchart
and cfchartseries
tags and the associated WebCharts3D commands:
Attribute | WebCharts3D command |
---|---|
|
Drag the chart by handles. |
|
Drag the chart by handles. |
|
Background: minColor (type must be PlainColor) |
|
font: Family (specify only supported fonts.) |
|
font: check Bold |
|
font: check Italic |
|
font: Size |
|
foreground |
|
XAxis: labelcount |
|
YAxis: LabelFormat: Number | Percent| Currency | Datetime |
|
Elements: markerSize |
|
style: solid | slice |
|
Type Frame chart: Elements: Shape: |
|
Yaxis: isAbsolute; scaleMin(int) |
|
Yaxis: isAbsolute; scaleMax(int) |
|
Elements: place |
|
is3D |
|
Decoration: style (none or simple)? |
|
Legend: isVisible |
|
Elements: showMarkers |
|
Frame: isVGridVisible |
|
Frame: isHGridVisible |
|
Popup: background |
|
Popup: showOn: MouseOver | MouseDown | Disabled |
|
Elements: action | Series: action |
|
Xaxis: TitleStyle: text (enter text) |
|
xAxis: type: (category or scale) |
|
Frame: xDepth |
|
Yaxis: TitleStyle: text (enter text) |
|
Currently has no effect. |
|
Frame: yDepth |
The following table lists the attributes of the cfchartseries
tag and the associated WebCharts3D commands:
Attribute | WebCharts3D command |
colorlist |
Elements: series: Paint: color |
markerStyle |
Elements: series: Marker type: Rectangle | Triangle | Diamond | Circle | Letter | MCROSS | Snow | RCROSS |
paintStyle |
Paint: paint: Plain | Shade | Light |
seriesColor |
Elements: series: Paint: color |
seriesLabel |
Elements: series: |
type |
Type: Pie chart | Type Frame chart: Elements: Shape: Bar | Line | Pyramid | Area | Curve | Step | Scatter | Cone | Cylinder | Horizontalbar | |