Format numbers for bar charts