cfchartdata

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="");

Attribute Reference

item string
Required

string; data point name

value string
Required

number or expression; data point value

Examples
Sample code using the cfchartdata tag

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>

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub