Hi ,
//Adding a sample value to “B3” cell
worksheet.Cells[“B3”].PutValue(50);//Adding a chart to the worksheet
int chartIndex =
worksheet.Charts.Add(Aspose.Cells.Charts.ChartType.Pyramid, 5, 0, 15, 5);
Here, I have to adjust. But I like to know how can I adjust the height and
width of the charts for the data displayed.
and what does this 5,0,15,5 means.
//Accessing the instance of the newly added chart
Aspose.Cells.Charts.Chart chart = worksheet.Charts[chartIndex];//Adding SeriesCollection (chart data source) to the chart ranging from “A1” cell to “B3”
chart.NSeries.Add(“A1:B3”, true);//Saving the Excel file
workbook.Save(“C:\book1.xls”);