<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 for Jakarta EE (Lucee 7+)
<cfchartdata
item=string
value=number
>
| Attribute | Description |
|---|---|
item
string, required
|
edit
string; data point name |
value
number, required
|
edit
number or expression; data point value |
Examples
editSimple 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 open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)