figuring out data structure for ordinal bar graph