Fix invalid directive attributes mapping in bar chart.