GrapeCity.Windows.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Windows.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.ColumnStacked, 0, 0, 200, 200);
// only for column, bar, or pie charts.
//3D column, bar, or pie charts do not support the border property.
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.GetDataPoint(2).Fill = new SolidColorBrush(Colors.Red);
ds.GetDataPoint(2).Stroke = new SolidColorBrush(Colors.Blue);
ds.GetDataPoint(2).StrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash;
ds.GetDataPoint(2).StrokeThickness = 2;
chart.DataSeries.Add(ds);
gcSpreadSheet1.ActiveSheet.Charts.Add(chart);