Update columnchart.js

move check for maximum before yAxis is updated with new data