refactored domain and data set service logic

and added empty bars directive and demo view for the bar chart
added bar directive