User Guide Cancel

Create a pyramid chart in ColdFusion

 

A pyramid chart is a visual representation that displays data in a hierarchical order, arranged in a triangle shape. Each section of the pyramid represents a different category.

Pyramid charts are particularly useful when you need to show hierarchical structures or progressive orders. 

Example

<cfset value1="92">
<cfset value2="70">
<cfset value3="62">
<cfset value4="87">
<cfchart format="html" showLegend="FALSE">
<cfchartseries type="pyramid">
<cfchartdata item="English" value="#value1#">
<cfchartdata item="Science" value="#value2#">
<cfchartdata item="Math" value="#value3#">
<cfchartdata item="History" value="#value4#">
</cfchartseries>
</cfchart>
<cfset value1="92"> <cfset value2="70"> <cfset value3="62"> <cfset value4="87"> <cfchart format="html" showLegend="FALSE"> <cfchartseries type="pyramid"> <cfchartdata item="English" value="#value1#"> <cfchartdata item="Science" value="#value2#"> <cfchartdata item="Math" value="#value3#"> <cfchartdata item="History" value="#value4#"> </cfchartseries> </cfchart>
        <cfset value1="92">
	<cfset value2="70">
	<cfset value3="62">
	<cfset value4="87">

	<cfchart format="html" showLegend="FALSE">
		<cfchartseries type="pyramid">
					<cfchartdata item="English" value="#value1#">
					<cfchartdata item="Science" value="#value2#">
					<cfchartdata item="Math" value="#value3#">	
					<cfchartdata item="History" value="#value4#">
				</cfchartseries>
	</cfchart>

Output

Get help faster and easier

New user?