bargraph function

Create bar graphs from raw data