Posted 8 December 2025, 2:23 am EST
Hello Support Team,
I am currently working on a project using SpreadJS and need to implement a feature to copy existing charts from one location to another via the context menu of the charts. Right now, Ctrl + C is working fine, but I would like to implement it through the context menu as well.
So far, I have explored the sheet.charts API and attempted selecting the chart and creating a new chart with the same properties, but I haven’t found a straightforward or recommended way to clone or duplicate charts while preserving their data, formatting, and series mappings.
Could you please provide guidance on:
The recommended approach or API for copying a chart in SpreadJS.
Any examples or best practices for duplicating charts while maintaining all configurations (series, chart type, formatting).
Potential caveats to consider when copying charts across sheets or workbooks.
Thank you for your assistance!

