Hi ,
I using to display stacked chart in below link i need only changes below
i am indicate avarege line in stacked,this line now display below of the statcked chart ,if all the stacked is above compare then average value the line is hided ,i want display line above the stacked column ,Please provide your solution
http://www.aspforums.net/Threads/116556/how-to-make-Multi-Series-stacked-chart-in-c-aspnet/

Below code i am using
int totalAvg = 0;
totalAvg = 8600;
MPchart.Series.Add("Avg");
MPchart.Series["Avg"].XValueType = ChartValueType.Int32;
MPchart.Series["Avg"].Color = Color.Black;
StripLine stripline = new StripLine();
stripline.ToolTip = "Avg of Manhours";
stripline.Text = "Max : " + totalAvg;
stripline.TextLineAlignment = StringAlignment.Far;
stripline.TextAlignment = StringAlignment.Far;
stripline.Interval = 0;
stripline.IntervalOffset = totalAvg;
stripline.StripWidth = 120;
stripline.BackColor = Color.Red;
stripline.Font = new Font("Verdana", 10.5f, FontStyle.Bold);
// stripline.BackImageWrapMode=
MPchart.ChartAreas["ChartArea1"].AxisY.StripLines.Add(stripline);
foreach (DataRow row in dt.Rows)
{
int total = 0;
//int sch = Convert.ToInt16(ds.Tables[0].Rows[i]["SCHCNT"].ToString());
total += Convert.ToInt16(row["hrs"]);
total += Convert.ToInt16(row["chrs"]);
row["Total"] = total;
}
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
/
{
MPchart.Series["Total"].Points.Add(new DataPoint(i, dt.Rows[i]["Total"].ToString().Trim()));
MPchart.Series["LTSB"].Points.Add(new DataPoint(i, ds.Tables[0].Rows[i]["hrs"].ToString().Trim()));
MPchart.Series["Contract"].Points.Add(new DataPoint(i, ds.Tables[0].Rows[i]["chrs"].ToString().Trim()));
MPchart.Series[0].Points[i].AxisLabel = ds.Tables[0].Rows[i]["PERD"].ToString().Trim();
foreach (System.Web.UI.DataVisualization.Charting.Series series in MPchart.Series)
{
foreach (System.Web.UI.DataVisualization.Charting.DataPoint point in series.Points)
{
if (point.YValues.Length > 0 && (double)point.YValues.GetValue(0) == 0)
{
//point.LegendText = point.AxisLabel;//In case you have legend
//point.AxisLabel = string.Empty;
//point.Label = string.Empty;
point.IsValueShownAsLabel = false;
}
}
}
}