resolved conflict with charts.js
added legend to pie charts on index.html