im making a system that requires something like stacked bar chart in c# i have searched for some stacked bar chart tutorial, experimented with codes and the like but it seems i cant come up to the output i want, most of the tutorials i searched are for basic bar chart. right now i did this in datagridview (colored cells) but it seems kinda foolish to make stacked bar chart out of a datagridview.
image link: http://tinypic.com/r/v8oe8k/8
heres my question, take a look at this picture, is this possible to do this in stacked bar chart?
1.) A series can continue to another column without the other stack from the first column? (Series 2)
2.) A series can stack over an empty space? (Series 5)
3.) if the two items above are possible, is this also possible for multi series bar chart? (optional)
if this is possible please do help me (providing a sample code snippet will be really be a big help)
thank you and have a nice day
edit: heres my code:
chart1.Series.Add("Series 1");
chart1.Series.Add("Series 2");
chart1.Series.Add("Series 3");
chart1.Series.Add("Series 4");
chart1.Series.Add("Series 5");
chart1.Series["Series 1"].ChartType = SeriesChartType.StackedColumn;
chart1.Series["Series 2"].ChartType = SeriesChartType.StackedColumn;
chart1.Series["Series 3"].ChartType = SeriesChartType.StackedColumn;
chart1.Series["Series 4"].ChartType = SeriesChartType.StackedColumn;
chart1.Series["Series 5"].ChartType = SeriesChartType.StackedColumn;
chart1.Series["Series 1"].Points.AddXY(1, 50);
chart1.Series["Series 2"].Points.AddXY(1, 100);
chart1.Series["Series 2"].Points.AddXY(2, 50);
chart1.Series["Series 3"].Points.AddXY(2, 200);
chart1.Series["Series 3"].Points.AddXY(3, 100);
chart1.Series["Series 4"].Points.AddXY(3, 50);
chart1.Series["Series 5"].Points.AddXY(5, 150);