Contents

cfgraph

Description

Displays a graphical representation of data.

Category

Other

Implemented

Usage Syntax

<cfgraph  
	type="String"
	[query="String"]
	[valueColumn="String"]
	[itemColumn="String"]
	[URL="String"]
	[URLColumn="String"]
	[showValueLabel="Boolean"]
	[valueLabelFont="String"]
	[valueLabelSize="number"]
	[valueLocation="String"]
	[scaleTo="number"]
	[scaleFrom="number"]
	[showItemLabel="Boolean"]
	[itemLabelFont="String"]
	[itemLabelSize="number"]
	[itemLabelOrientation="String"]
	[title="String"]
	[titleFont="String"]
	[barSpacing="number"]
	[showLegend="String"]
	[legendFont="String"]
	[fileFormat="String"]
	[graphHeight="number"]
	[graphWidth="number"]
	[backgroundColor="String"]
	[borderColor="String"]
	[borderWidth="String"]
	[depth="number"]
	[gridlines="number"]
	[lineColor="String"]
	[lineWidth="number"]
	[fill="number"]
	[colorList="String"]
 />

[] = Optional attribute

Attributes

Name Type Required Default Description
type String Yes Type of chart to display.
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.
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.
itemColumn String No Query column that contains the item label for the corresponding data point. The item labels appear in the chart legend.
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.
showValueLabel Boolean No Specifies whether values are displayed for the data points.
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.
scaleTo number No The maximum value of the graph value axis.
scaleFrom number No The minimum value of the graph value axis (the vertical axis for Bar charts, the horizontal axis for HorizontalBar charts).
showItemLabel Boolean No Specifies whether to put item labels on the horizontal axis of bar charts and the vertical axis of HorizontalBar charts.
itemLabelFont String No The font used for the item labels.
itemLabelSize number No The size of the item labels, in points.
itemLabelOrientation String No Orientation of item labels.
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.
barSpacing number No Spacing between bars in the chart, in pixels.
showLegend String No The placement of the legend that identifies colors with the data labels.
legendFont String No The font used to display the legend.
fileFormat String No File type to be used for the output displayed in the browser.
graphHeight number No Height of the graph, in pixels. Default is 240.
graphWidth number No Width of the graph, in pixels. Default is 320.
backgroundColor String No Color of the chart background.
borderColor String No Border color.
borderWidth String No Border thickness, in pixels.
depth number No Depth of 3D chart appearance, in pixels.
gridlines number No An integer that specifies the number of grid lines to display on the chart between the top and bottom lines.
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.
fill number No Width of the graph line, in pixels.
colorList String No Comma delimited list of colors to use for each data point.

Example Usage