implement bar chart for state distribution