JS Pie and Bar charts with live data