cfchartseries

Used with the cfchart tag. This tag defines the style in which
chart data displays: bar, line, pie, and so on.

 <cfchartseries type="bar">

 cfchartseries(type="bar");

Attribute Reference for the cfchartseries tag

type

Required: Yes
Sets the chart display style Values:
  • bar
  • line
  • pyramid
  • area
  • horizontalbar
  • cone
  • curve
  • cylinder
  • step
  • scatter
  • pie

query

Required: No
Name of CFML query from which to get data.

itemcolumn

Required: No
Name of a column in the query specified in the query
attribute; contains the item label for a data point to
graph.

valuecolumn

Required: No
Name of a column in the query specified in the query
attribute; contains data values to graph.

serieslabel

Required: No
Text of data series label

seriescolor

Required: No
Color of the main element (such as the bars) of a chart.
For a pie chart, the color of the first slice.

Hex value or supported named color; see name list in the
cfchart Usage section.
For a hex value, use the form "##xxxxxx", where x = 0-9 or
A-F; use two pound signs or none.

paintstyle

Required: No
Default: plain
Sets the paint display style of the data series. Values:
  • plain
  • raise
  • shade
  • light

markerstyle

Required: No
Default: rectangle
Applies to chartseries type attribute values line, curve
and scatter, and show3D attribute value no. Values:
  • rectangle
  • triangle
  • diamond
  • circle
  • letter
  • mcross
  • snow
  • rcross

colorlist

Required: No
Applies if chartseries type attribute = "pie". Sets pie
slice colors.

Comma-delimited list of hex values or supported, named web
colors; see name list in the cfchart Usage section.

For a hex value, use the form "##xxxxxx", where x = 0-9 or
A-F; use two pound signs or none.

datalabelstyle

Required: No
Specifies the way in which the color is applied to the
item in the series:
- None = nothing is printed (default)
- Value = the value of the datapoint
- Rowlabel = the row's label
- Columnlabel = the column's label
- Pattern Values:
  • none
  • value
  • rowlabel
  • columnlabel
  • pattern


Fork me on GitHub