Hi,
Please use DataPoint.BorderWidth property for your requirement.
E.g.,
Chart c = new Chart();
c.Height = 300;
c.Width = 400;
Series s = new Series();
s.ChartType = ChartType.Line;
s.DefaultDataPoint.BorderWidth = 7;
s.DataPoints.Add(new DataPoint(1, 1));
s.DataPoints.Add(new DataPoint(2, 2));
s.DataPoints.Add(new DataPoint(3, 3));
c.SeriesCollection.Add(s);
//Save the chart image into a memory stream.
MemoryStream ms = new MemoryStream();
c.Save(ms, ImageFormat.Png);
//Save the chart image from the memory stream to the response.
Response.Clear();
Response.ContentType = "image/png";
Response.OutputStream.Write(ms.ToArray(), 0, (int) ms.Length);
Thank you.
Amjad Sahi
Support Developer,
Aspose Nanjing Team
Contact Us