Can some one please tell me how to make a Stacked Column Chart with the code? I've no dataset to bind, just plain values to display in a stacked column chart. I'm using normal .NET Chart controls provided by Visual Studio 2010 in .NET Framework 40. So please refrain from talking about WebCharts or any other paid charting like Dundas charts or dotnetCharting etc..
Setting the SeriesChartType to StackedColumn should give you the stack area chart if that is what you are asking. Code example below is from here
//Populate series data
Random random = new Random();
for(int pointIndex = 0; pointIndex < 10; pointIndex++)
{
Chart1.Series["Series1"].Points.AddY(Math.Round((double)random.Next(45, 95),0));
Chart1.Series["Series2"].Points.AddY(Math.Round((double)random.Next(5, 75),0));
Chart1.Series["Series3"].Points.AddY(Math.Round((double)random.Next(5, 95),0));
Chart1.Series["Series4"].Points.AddY(Math.Round((double)random.Next(35, 95),0));
}
Chart1.Series["Series1"].ChartType = SeriesChartType.StackedColumn;
Chart1.Series["Series2"].ChartType = SeriesChartType.StackedColumn;
Chart1.Series["Series3"].ChartType = SeriesChartType.StackedColumn;
Chart1.Series["Series4"].ChartType = SeriesChartType.StackedColumn;