function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Urgent: Please help me to Develop Burn down chart

Hi Guys,

We have struck in developing of Burndown chart, please provide me the sample code, that would be great help to me.

Thanks in Advance....

sandy sfdcsandy sfdc
<apex:page controller="ChartController">
    <apex:chart height="400" width="700" data="{!data}">
        <apex:legend position="right"/>
        <apex:axis type="Numeric" position="left" fields="data1"  title="Percentage %" grid="true"/>
        <apex:axis type="Category" position="bottom" fields="name"  title="Month of the Year">
            <apex:chartLabel rotate="315"/>
        <apex:lineSeries title="Closed-Won" axis="left" xField="name" yField="data1"  fill="true" markerType="cross" markerSize="4" markerFill="#FF0000"/>


public class ChartController {
    public List<Data> getData() {
        List<Data> data = new List<Data>();
        data.add(new Data('Jan', 90));
        data.add(new Data('Feb', 82));
        data.add(new Data('Mar', 74));
        data.add(new Data('Apr', 66));
        data.add(new Data('May', 58));
        data.add(new Data('Jun', 50));
        data.add(new Data('Jul', 42));
        data.add(new Data('Aug', 34));
        data.add(new Data('Sep', 26));
        data.add(new Data('Oct', 18));
        data.add(new Data('Nov', 10));
        data.add(new Data('Dec', 0));
        return data;

    public class Data {
        public String name { get; set; }
        public Integer data1 { get; set; }
        public Data(String name, Integer data1) {
   = name;
            this.data1 = data1;
Try the above code