define(["modules/graphs/module","modules/graphs/directives/flot/FlotConfig","flot","flot-resize","flot-fillbetween","flot-orderBar","flot-pie","flot-time","flot-tooltip"],function(a,b){"use strict";return a.registerDirective("flotBarChart",function(){return{restrict:"E",replace:!0,template:'<div class="chart"></div>',scope:{data:"="},link:function(a,c){$.plot(c,a.data,{colors:[b.chartSecond,b.chartFourth,"#666","#BBB"],grid:{show:!0,hoverable:!0,clickable:!0,tickColor:b.chartBorderColor,borderWidth:0,borderColor:b.chartBorderColor},legend:!0,tooltip:!0,tooltipOpts:{content:"<b>%x</b> = <span>%y</span>",defaultTheme:!1}})}}})});