Export chart to new workbook

Hello,

We are using Aspose cells for java and looking for a option to export the chart from the existing workbook to a new workbook.
Can you please let us know how can we achieve us or point us to the appropriate documentation?

Thanks,
Neeraj

@neergupta,

Thanks for your query.

Copying chart b/w sheets in the same workbook
If you are copying chart shape from one worksheet to another worksheet in the same workbook, you may try to use ShapeCollection.addCopy() method, see the document for your reference:

Copying chart shape b/w workbooks
When copying chart shape from one workbook to other, you have to either use Worksheet.copy() method or use Range.copy() method accordingly. The reason is since chart does have source data into the cells, so you got to copy that data range as well. Copying chart shape might not be helpful as it will point to source data in the source workbook sheet. See the documents for your reference:

Hope, this helps a bit.