Updated code to work with project, and fixing divide by zero bugs.

- separate grid x and y colours
- bars centered to x-axis labels
- padding between bars

props @xtreme-fredrich-ombico