Fixing chart axis bug with unit preferences