fix for chart height and width and scope of directive