User Guide

Table Of Contents
Controlling chart appearance 749
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.
To modify a chart style XML file:
1.
Open the XML file that you want to modify, for example beige.xml.
2.
Modify the file contents.
3.
Save the file with a different name; for example myBeige.xml.
Using WebCharts3D to create chart styles
ColdFusion MX 7 includes the WebCharts3D utility, which you can use to create chart style files.
To create your own chart style file with the WebCharts3D utility:
1.
Start WebCharts3D by double-clicking the webcharts.bat file in the CFusionMX7\charting
directory.
2.
(Optional) Open an existing chart.
3.
Make the changes you want to the chart’s appearance.
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.
4.
Click the XML style tab.
5.
Click the Save button in the bottom right corner.
6.
Specify the name of the file; for example, mystyle.xml.
7.
Specify the directory in which you want to save the chart style file.
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.
8.
Click Save.
The following table lists the attributes of the
cfchart and cfchartseries tags and the associated
WebCharts3D commands:
Attribute WebCharts3D command
chartHeight
Drag the chart by handles.
chartWidth
Drag the chart by handles.
dataBackgroundColor
Background: minColor (type must be PlainColor)
font
font: Family (specify only supported fonts.)
fontBold
font: check Bold
fontItalic
font: check Italic
fontSize
font: Size
foregroundColor
foreground
gridlines
XAxis: labelcount