<cfchartdata>
Used with the <cfchart> and <cfchartseries> tags. This tag defines chart data points.
It's data is submitted to the <cfchartseries> tag.
This tag cannot have a body.
This tag is also supported within <cfscript>
Requires Extension: Chart Extension
<cfchartdata
item=string
value=number
>
Attribute | Description |
---|---|
item
string, required
|
string; data point name |
value
number, required
|
number or expression; data point value |
Examples
Simple example for Chartdata
<cfchart format="jpg" title="Sales Result" backgroundcolor="yellow" showborder="true">
<cfchartseries type="curve">
<cfchartdata item="2016" value="#RandRange(100,500)#">
<cfchartdata item="2017" value="#RandRange(100,500)#">
<cfchartdata item="2018" value="#RandRange(100,500)#">
<cfchartdata item="2019" value="#RandRange(100,500)#">
</cfchartseries>
</cfchart>
See also
- <cfchart>
- <cfchartseries>
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)