Currently, there is no way to add datasets to a classic chart through scripting. It has to be done manually.
Add method to dynamically add/remove datasets