Tags · Functions · Objects
Lucee Tag Reference
Choose a tag:

Tag <CFGRAPH>

This Tag is deprecated
Displays a graphical representation of data.

Body

This tag must have a body.

Example

	<cfgraph
		[backgroundcolor="string"]
		[barspacing="number"]
		[bordercolor="string"]
		[borderwidth="string"]
		[colorlist="string"]
		[depth="number"]
		[fileformat="string"]
		[fill="number"]
		[graphheight="number"]
		[graphwidth="number"]
		[gridlines="number"]
		[itemcolumn="string"]
		[itemlabelfont="string"]
		[itemlabelorientation="string"]
		[itemlabelsize="number"]
		[legendfont="string"]
		[linecolor="string"]
		[linewidth="number"]
		[query="string"]
		[scalefrom="number"]
		[scaleto="number"]
		[showitemlabel="boolean"]
		[showlegend="string"]
		[showvaluelabel="boolean"]
		[title="string"]
		[titlefont="string"]
		type="string"
		[url="string"]
		[urlcolumn="string"]
		[valuecolumn="string"]
		[valuelabelfont="string"]
		[valuelabelsize="number"]
		[valuelocation="string"]>

	</cfgraph>

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name Type Required Description
backgroundcolor string No Color of the chart background. 
barspacing number No Spacing between bars in the chart, in pixels. 
bordercolor string No Border color. 
borderwidth string No Border thickness, in pixels. 
colorlist string No Comma delimited list of colors to use for each data point. 
depth number No Depth of 3D chart appearance, in pixels. 
fileformat string No File type to be used for the output displayed in the browser. 
fill number No Width of the graph line, in pixels. 
graphheight number No Height of the graph, in pixels. Default is 240. 
graphwidth number No Width of the graph, in pixels. Default is 320. 
gridlines number No An integer that specifies the number of grid lines to display on the chart between the top and bottom lines. 
itemcolumn string No Query column that contains the item label for the corresponding data point. The item labels appear in the chart legend. 
itemlabelfont string No The font used for the item labels. 
itemlabelorientation string No Orientation of item labels. 
itemlabelsize number No The size of the item labels, in points. 
legendfont string No The font used to display the legend. 
linecolor string No The color used to draw the data line. 
linewidth number No Specifies whether to fill the area below the line with the line color to create an area graph. 
query string No Name of the query containing the data to graph. Required if you do not use cfgraphdata tags in the cfgraph tag body to specify the data values. 
scalefrom number No The minimum value of the graph value axis (the vertical axis for Bar charts, the horizontal axis for HorizontalBar charts). 
scaleto number No The maximum value of the graph value axis. 
showitemlabel boolean No Specifies whether to put item labels on the horizontal axis of bar charts and the vertical axis of HorizontalBar charts. 
showlegend string No The placement of the legend that identifies colors with the data labels. 
showvaluelabel boolean No Specifies whether values are displayed for the data points. 
title string No Title to display centered above the chart, or below the chart if the legend is above the chart. 
titlefont string No The font used to display the title. 
type string Yes Type of chart to display. 
url string No A URL to load when the user clicks any data point on the chart. 
urlcolumn string No Query column containing URL information to load when the user clicks the corresponding data point. 
valuecolumn string No Query column that contains the data values.
Required if you do not use cfgraphdata tags in the cfgraph tag body to specify the data values. 
valuelabelfont string No The font used to display data values. 
valuelabelsize number No The size the value text, in points. 
valuelocation string No Where value labels are placed.