add bar chart for number of resources