<cfchart>
Generates and displays a chart.
https://github.com/lucee/extension-chart
This tag may have a body.
This tag is also supported within <cfscript>
Requires Extension: Chart Extension
<cfchart
backgroundcolor=string
chartheight=number
chartwidth=number
databackgroundcolor=string
font=string
fontbold=boolean
fontitalic=boolean
fontsize=number
foregroundcolor=string
format=string
gridlines=number
labelformat=string
categorylabelpositions=string
markersize=number
name=string
pieslicestyle=string
scalefrom=number
scaleto=number
seriesplacement=string
show3d=boolean
showborder=any
showlegend=boolean
showmarkers=boolean
showxgridlines=boolean
showxlabel=boolean
showtooltip=boolean
source=string
showygridlines=boolean
sortxaxis=boolean
style=string
title=string
tipbgcolor=string
tipstyle=string
url=string
xaxistitle=string
xaxistype=string
xoffset=number
yaxistitle=string
yaxistype=string
yoffset=number
><!--- body --->[</cfchart>]
Unimplemented Attribute(s)
Examples
Example for cfchart
<cfchart format="jpg" title="Sales Report" backgroundcolor="cyan" showborder="true">
<cfchartseries type="pie">
<cfchartdata item="2012" value="2000">
<cfchartdata item="2013" value="4000">
<cfchartdata item="2014" value="5000">
<cfchartdata item="2015" value="7000">
</cfchartseries>
</cfchart>
See also
- <cfchartdata>
- <cfchartseries>
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)