cfchart - pieslicestyle property in pie chart
cfchartpieSliceStyle.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfchart tag: how to use pieslicestyle property in pie chart in coldfusion</title>
</head>
<body>
<h2 style="color:DarkSeaGreen; font-style:italic">cfchart example: how to use pieslicestyle property in pie chart</h2>
<hr width="700" align="left" color="DarkSeaGreen" />
<br />
<cfquery name="qEmployee" datasource="cfdocexamples" maxrows="4">
SELECT FirstName, LastName, Salary FROM EMPLOYEE
</cfquery>
<cfchart
format="png"
xaxistitle="First Name"
yaxistitle="Salary"
chartheight="400"
chartwidth="700"
showlegend="no"
backgroundcolor="696969"
fontbold="yes"
foregroundcolor="FFFAFA"
show3d="yes"
databackgroundcolor="DA70D6"
font="Verdana"
fontsize="13"
showxgridlines="no"
showygridlines="yes"
sortxaxis="no"
showborder="no"
pieslicestyle="sliced"
>
<cfchartseries
query="qEmployee"
type="pie"
itemcolumn="FirstName"
valuecolumn="Salary"
colorlist="FFE4E1,FFEFD5,D2B48C,FFFAFA,F5DEB3"
>
</cfchartseries>
</cfchart>
</body>
</html>