With bar chart widget added: Angular directive, data manipulation