I renamed this because `createBarChart` wasn't really a function as its name seemed to imply.