Name

cfgraphdata

Synopsis

<cfgraph>
  [<cfgraphdata>]
  ...
</cfgraph>

Used as a child tag of cfgraph to define a single data point to graph. cfgraphdata tags may be used alone within a cfgraph tag block or in combination with data from a query. This tag has been replaced by cfchart, cfchartseries, and cfchartdata in ColdFusion MX. It is still functional for backward compatibility; however, it may not function exactly as it did in ColdFusion 5. It is recommended you port your cfgraph/cfgraphdata code to cfchart.

Attributes

value=" data_point_value "

The data point value to be graphed. Required.

color=" color "

Color associated with the data point. Colors may be specified by name or hex code in the form color="##FFFFCC". The double pound signs keep ColdFusion from throwing an error. Optional. By default, the cfgraphdata tag takes the color for the data point from the colorlist attribute specified in the cfgraph tag. If no colorlist is present, cfgraphdata uses a color from ColdFusion’s default list of colors.

item=" data_point_label "

Label for the data point to be graphed. Optional.

URL=" URL "

A URL (including any relevant URL parameters) to link to when a data point on the chart is clicked. URL is valid only for Bar, HorizonatalBar, and Pie charts, and only when the fileformat attribute of the cfgraph tag is Flash. Optional.

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.