Used with the cfchart and cfchartseries tags. This tag defines chart data points. Its data is submitted to the cfchartseries tag.
<cfchartdata item="" value="">
cfchartdata(item="", value="");
Name | Type | Required | Default | Description |
---|---|---|---|---|
item | string | Yes | string; data point name | |
value | string | Yes | number or expression; data point value |
A Simple bar chart with hard coded data.
<cfchart xAxisTitle="Department" yAxisTitle="Salary Average">
<cfchartseries type="bar">
<cfchartdata item="Finance" value="75000">
<cfchartdata item="Sales" value="120000">
<cfchartdata item="IT" value="83000">
<cfchartdata item="Facilities" value="45000">
</cfchartseries>
</cfchart>