Chart tidying.
Use single instead of double quotes in chart.js.
Factor out most of the numerical literals in chart.js into constants.
Debug output tidying up.