Implemented d3 bar directive