moved remaining POC code into chart.js