Implement bar chart directive