to plot bar chart