Hello,
Stacked charts are supported for bar and column charts.
About your question, yes you can change the data of an existing chart using this method available in Advanced and Premium licenses:
https://www.phpdocx.com/api-documentation/docxutilities/replace-chart-data-Word-document
Regards.