Change bar chart directive to attribute restriction.