Please help me to programmatically add the "ShowTotalSum" bar at the end of a Waterfall chart.
Below is the code I created on page load, but fails to give the "ShowTotalSum" column.
protected void Page_Load(object sender, EventArgs e)
{
Chart1.Visible = true;
DataTable dt = new DataTable();
dt.Columns.Add("xValue");
dt.Columns.Add("yValue");
dt.Rows.Add(new Object[] { "Opening Policy Count", 1288 });
dt.Rows.Add(new Object[] { "Exits", -250 });
dt.Rows.Add(new Object[] { "Expiries", -260 });
dt.Rows.Add(new Object[] { "New business", 279 });
dt.Rows.Add(new Object[] { "Reinstatements", 320 });
Series series = new Series();
series.XName = "xValue";
series.YName = "yValue";
series.Marker.DataLabel.Visible = true;
series.Marker.DataLabel.EnableContrastColor = true;
series.Marker.DataLabel.Font.FontSize = "13px";
series.Marker.DataLabel.TextPosition = TextPosition.Middle;
series.Marker.DataLabel.Font.FontWeight = ChartFontWeight.Regular;
series.Tooltip.Visible = true;
series.Type = SeriesType.Waterfall;
series.EnableAnimation = true;
series.PositiveFill = "green";
Chart3.Series.Add(series);
Chart3.PrimaryXAxis.LabelIntersectAction = LabelIntersectAction.Wrap;
Chart3.PrimaryYAxis.LabelFormat = "{value}";
Chart3.Title.Text = "Active Policy Count Movement Analysis";
Chart3.DataSource = dt;
Chart3.DataBind();
Chart3.Visible = true;
Chart3.Legend.Visible = false;
}