Script to generate bar charts.