bar chart axis works only after the first few updates, need to address that