Used with the cfchart
tag. This tag defines the style in which chart data displays: bar, line, pie, and so on.
Data output tags, Extensibility tags
<cfchartseries
type="type"
query="queryName"
itemColumn="queryColumn"
valueColumn="queryColumn"
seriesLabel="Label Text"
seriesColor="Hex value or Web color"
paintStyle="plain, raise, shade, light"
markerStyle="style"
colorlist = "list">
</cfchartseries>
ColdFusion MX 6.1: Changed interpolation behavior: the tag now interpolates data points on line charts with multiple series.
ColdFusion MX: Added this tag.
Attribute | Req/Opt | Default | Description |
---|---|---|---|
type |
Required |
|
Sets the chart display style:
|
query |
Optional |
|
Name of ColdFusion query from which to get data. |
itemColumn |
Required if |
|
Name of a column in the query specified in the |
valueColumn |
Required if |
|
Name of a column in the query specified in the |
seriesLabel |
Optional |
|
Text of data series label |
seriesColor |
Optional |
|
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 For a hex value, use the form |
paintStyle |
Optional |
plain |
Sets the paint display style of the data series.
|
markerStyle |
Optional |
rectangle |
Applies to Sets the icon that marks a data point:
|
colorlist |
Optional |
|
Applies if Comma-delimited list of hex values or supported, named web colors; see name list in the For a hex value, use the form |
If a chart has multiple line series, ColdFusion interpolates missing data points in the common X axis range. For example, if one series has data points at 0, 10, and 20 on the X axis and a second series has data points at 0, 20, and 30, ColdFusion calculates and displays a data point for X=10 on the second series line, but it does not calculate an X=30 value for the first series.
For a pie chart, ColdFusion sets pie slice colors as follows:
seriesColor
attribute is omitted, ColdFusion automatically colors the slices seriesColor
attribute is specified, ColdFusion automatically colors the slices after the first one, starting with the specified color for the first slicecolorList
attribute is specified, ColdFusion colors the slices after the first one, according to the listColdFusion Generates an error if you use more than 16 chartseries
tags in one cfchart
tag.