Example code for generating a bar graph of big data sets