testing bar graph
a little refactoring of bar graph code
bar graphs sort of work. sometimes break. code may bite. approach with caution