Initial setup for barchart directive