bar chart and angular directive