In the HTML file, I've changed #chart-data to .chart-data (id to class) because there can be several graphs on the front page. Please update here too (and downwards).