implemented bar chart handler prototype