Able to render graphs dynamically, including allowing spaces in the graph title. Realised div id cannot be the graph title as it will likelly contain spaces