Cleaned up barchart code (for-loop instead of a seperate line of code for every bar in the chart). Also changed the color scheme and created a diagram legend with raphael. Only one variable needs to be changed to change the color/legend now.