How to change Chart series color in ColdFusion

cfchart - chart series color

cfchartSeriescolor.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 set change chart series color (seriescolor)</title>
</head>

<body>
<h2 style="color:PaleVioletRed; font-style:italic">cfchart example: how to change chart series color</h2>
<hr width="675" align="left" color="PaleVioletRed" />
<br />

<cfchart 
    format="jpg"
    xaxistitle="Employee"
    chartheight="375"
    yaxistitle="Monthly Salary"
    databackgroundcolor="FF4500"
    chartwidth="675"
    fontbold="yes"
    fontsize="13"
    backgroundcolor="BC8F8F"
    foregroundcolor="FFF5EE"
    showxgridlines="yes"
    gridlines="5"
    show3d="yes"
    font="Comic Sans MS"
    sortxaxis="no"
    showborder="no"
    showygridlines="yes"
    >
    <cfchartseries 
        type="bar" 
        seriescolor="D87093"
        >
        <cfchartdata item="Rabi" value="1250">
        <cfchartdata item="Jonaki" value="780">
        <cfchartdata item="Sonali" value="1800">
        <cfchartdata item="Buri" value="1695">
        <cfchartdata item="Pocha" value="1125">
    </cfchartseries>
</cfchart>
</body>
</html>





More ColdFusion examples