gets bar graph data