GrapeCity.Windows.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Windows.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.ColumnStacked, 0, 0, 200, 200);
GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries ds = new GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries();
ds.Values.Add(4);
ds.Values.Add(-7);
ds.Values.Add(-6);
ds.Values.Add(10);
ds.Values.Add(4);
ds.Fill = new SolidColorBrush(Colors.Green);
ds.Stroke = new SolidColorBrush(Colors.Blue);
ds.StrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash;
ds.StrokeThickness = 2;
ds.InvertIfNegative = true;
ds.NegativeFill = new SolidColorBrush(Colors.Red);
chart.DataSeries.Add(ds);
gcSpreadSheet1.ActiveSheet.Charts.Add(chart);