Hi,
Hi,
Thanks Amjad for the quick reply and now I can create the named ranges with formula.
Hi Kallol,
Thanks for your posting and using Aspose.Cells.
Please provide us your sample console application project creating your chart and causing you this issue. It will help us look into your issue more closely and precisely and we will update you asap.
Please also provide us your expected output Excel file which you can create manually using Microsoft Excel and attach it here for our reference.
Thanks for your cooperation.
Not sure why I got this reply since i have already posted the sample code I have used and the expected output. As I mentioned above I want to create chart a replica of what I have done in the sample excel file.
Hi Kallol,
Thanks for your posting and using Aspose.Cells.
Please see the following code. It adds the series with Values as range and the series looks same as yours.
I have attached the output Excel file and screenshot showing the series for your reference.
C#
string filePath = @“F:\Shak-Data-RW\Downloads\sample.xlsx”;
Workbook workbook = new Workbook(filePath);
Worksheet worksheet = workbook.Worksheets[1];
int id = worksheet.Charts.Add(ChartType.LineWithDataMarkers, 2, 2, 10, 10);
Chart ch = worksheet.Charts[id];
ch.NSeries.Add(“A1:A2”, true);
Series s = ch.NSeries[0];
s.Values = “=Sheet1!Val1Range”;
s.Name = “Val1”;
workbook.Save(“output.xlsx”);
Hi Shakeed,
Hi Kallol,
Thanks for your feedback and using Aspose.Cells.
It is good to know that this solution works for you. It is just a workaround to add a single vertical series inside the chart.
Hi Shakeed,
Hi Kallol,
Thanks for your posting and using Aspose.Cells.
Please provide us your runnable sample console application project which we could run at our end and replicate this issue. In case, you need a code change, we will suggest it or if it is some bug we will log it in our database so that it could be fixed at the earliest.
Hi Shakeed,
Hi Kallol,
Hi Amjad,
Hi,