Hi,
I think you may use our latest version e.g v5.3.2, 5.3.3 to specify gradient stops. You cannot implement the advanced gradient options in older version like v4.4 that you are using. Please see the following sample code here.
Workbook workbook = new Workbook("e:\\test2\\gradient_sample.xls");
Worksheet csheet = workbook.Worksheets["Chart"];
Chart chart = csheet.Charts[0];
SeriesCollection nseries = chart.NSeries;
Series aseries;
aseries = nseries[2];
CellsColor cellColor = workbook.CreateCellsColor();
cellColor.Color = Color.Blue;
ChartPointCollection datapoints = aseries.Points;
for (int i = 0; i < datapoints.Count; i++)
{
datapoints[i].Area.FillFormat.GradientFill.GradientStops.Add(80, cellColor, 2);
}
workbook.Save("e:\\test2\\outputFile.xls");
I have also attached our latest fixed version here.
Thank you.
Amjad Sahi
Support Developer,
Aspose Sialkot Team
Contact Us