Chart label format (currency, date, number, percent) in ColdFusion

cfchart - label format (currency, date, number, percent) in chart

cfchartLabelFormat.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 label format (currency, date, number, percent) in chart</title>
</head>

<body>
<h2 style="color:RosyBrown; font-style:italic">cfchart example: how to use label format in chart</h2>
<hr width="700" align="left" color="RosyBrown" />
<br />

<cfchart 
    format="png"
    xaxistitle="First Name"
    yaxistitle="Salary"
    chartheight="400"
    chartwidth="700"
    foregroundcolor="FFFAFA"
    backgroundcolor="BC8F8F"
    fontbold="yes"
    show3d="yes"
    databackgroundcolor="DDA0DD"
    font="Verdana"
    fontsize="13"
    showxgridlines="no"
    showygridlines="yes"
    labelformat="currency"
    >
    <cfchartseries 
        type="bar" 
        seriescolor="8B4513"
     paintstyle="light"        
        >
        <cfchartdata item="Farhana" value="1295">
        <cfchartdata item="Faria" value="2900">
        <cfchartdata item="Kak" value="1840">
        <cfchartdata item="Moyna" value="1650">
        <cfchartdata item="Monalisa" value="1110">
    </cfchartseries>
</cfchart>
</body>
</html>





More coldfusion examples