#72002/3/31 11:08:29
实例:
其中query = " " 中的数据库源名
valuecolumn="count" 数据库中的计数字段
itemcolumn="title" 数据库中的标题字段
其他为一些标签属性:
CFML Reference
--------------------------------------------------------------------------------
ColdFusion Tags
cfgraph
Description
Displays a graphical representation of data.
Category
Extensibility tags
See also
cfcollection, cfexecute, cfindex, cfobject, cfreport, cfsearch, cfservlet, cfwddx
Usage
The cfgraph tag requires a terminating end tag, even if the tag body is empty.
Only cfgraphdata tags are allowed inside the cfgraph tag body. The cfgraphdata tag lets you graph data that does not come from a query. You can combine data from a query and cfgraphdata tags.
To use the cfgraph tag, you must have Macromedia Generator running on a JRun server. If the JRun server is not listening on the default port on your localhost, you must use ColdFusion Administrator to specify the host address and port. For more information, see Installing and Configuring ColdFusion Server.
cfgraph topics
The following sections describe options to the cfgraph tag:
cfgraph type = "bar" or type = "horizontalBar"
cfgraph type = "line" (includes area graphs)
cfgraph type = "pie"