There are a few things that I can test before refactoring a lot of the code as described here such as:
are the values in the final JS chart object correct (if the user passes in these values/labels, are they correct? what about when I update them? etc)? I could add some of the JS object properties (parent, title, values, etc) to the various charts I have too (currently they have no properties, only methods).
There are a few things that I can test before refactoring a lot of the code as described here such as: