Discrete bar/canvas

Refactoring of discreteBar & discreteBarChart, a test for the bar chart, also added some changes in canvas.js