I'm using a different approach using Google Charts, as outlined here.
I run Domoticz on a RPi, and I've written a Python script to get values from Domoticz using JSON calls every 10 minutes, and write these to a .csv file, creating a new file each day.
I then run a modified version of @stephenmhall's Python script, which creates an html file and calls Google Charts. One advantage of this approach is that you display the webpage in a local browser.