User Guide

Table Of Contents
748 Chapter 31: Creating Charts and Graphs
Creating your own chart styles
You can create your own chart styles by doing either of the following:
Modifying the chart style XML files
Using WebCharts3D to create chart styles
Modifying the chart style XML files
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” on page 749.
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
circle,
diamond, letterx, mcross, rcross,
rectangle, snow, and triangle.
Supported for two-dimensional charts.
The default value is
rectangle.
Curve
Line
Scatter
Labels dataLabelStyle Specifies the way in which the color is
applied to the item in the series Styles
include
None, Value, Rowlabel,
Columnlabel, and Pattern.
All
Chart
characteristic
Attributes used Description Chart
type