<cfgraph>

Displays a graphical representation of data.

Usage

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

This tag must have a body.

This tag is also supported within cfscript

Attributes

Attribute Description
itemcolumn
(string, optional)

Query column that contains the item label for the corresponding data point. The item labels appear in the chart legend.

query
(string, optional)

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.

gridlines
(number, optional)

An integer that specifies the number of grid lines to display on the chart between the top and bottom lines.

graphheight
(number, optional)

Height of the graph, in pixels. Default is 240.

valuelabelfont
(string, optional)

The font used to display data values.

linewidth
(number, optional)

Specifies whether to fill the area below the line with the line color to create an area graph.

fill
(number, optional)

Width of the graph line, in pixels.

bordercolor
(string, optional)

Border color.

showitemlabel
(boolean, optional)

Specifies whether to put item labels on the horizontal axis of bar charts and the vertical axis of HorizontalBar charts.

url
(string, optional)

A URL to load when the user clicks any data point on the chart.

titlefont
(string, optional)

The font used to display the title.

scalefrom
(number, optional)

The minimum value of the graph value axis (the vertical axis for Bar charts, the horizontal axis for HorizontalBar charts).

borderwidth
(string, optional)

Border thickness, in pixels.

legendfont
(string, optional)

The font used to display the legend.

backgroundcolor
(string, optional)

Color of the chart background.

barspacing
(number, optional)

Spacing between bars in the chart, in pixels.

scaleto
(number, optional)

The maximum value of the graph value axis.

valuecolumn
(string, optional)

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.

valuelocation
(string, optional)

Where value labels are placed.

showlegend
(string, optional)

The placement of the legend that identifies colors with the data labels.

colorlist
(string, optional)

Comma delimited list of colors to use for each data point.

showvaluelabel
(boolean, optional)

Specifies whether values are displayed for the data points.

linecolor
(string, optional)

The color used to draw the data line.

itemlabelsize
(number, optional)

The size of the item labels, in points.

urlcolumn
(string, optional)

Query column containing URL information to load when the user clicks the corresponding data point.

valuelabelsize
(number, optional)

The size the value text, in points.

graphwidth
(number, optional)

Width of the graph, in pixels. Default is 320.

itemlabelorientation
(string, optional)

Orientation of item labels.

fileformat
(string, optional)

File type to be used for the output displayed in the browser.

itemlabelfont
(string, optional)

The font used for the item labels.

type
(string, required)

Type of chart to display.

title
(string, optional)

Title to display centered above the chart, or below the chart if the legend is above the chart.

depth
(number, optional)

Depth of 3D chart appearance, in pixels.

Examples

There are currently no examples for this tag.