Hello,
replaceChartData (https://www.phpdocx.com/api-documentation/docxutilities/replace-chart-data-Word-document) only replaces existing values in a chart, but it doesn't remove or add values. We have added a task to the dev team to add support.
To add custom charts using any number of values there's no other alternative than using addChart (https://www.phpdocx.com/api-documentation/word-content/add-chart-Word-document-with-PHP).
Regards.