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("flotSiteStatsChart",function(){return{restrict:"E",replace:!0,template:'<div class="chart"></div>',scope:{data:"="},link:function(a,c){$.plot(c,a.data,{series:{lines:{show:!0,lineWidth:1,fill:!0,fillColor:{colors:[{opacity:.1},{opacity:.15}]}},points:{show:!0},shadowSize:0},yaxes:[{min:20,tickLength:5}],grid:{hoverable:!0,clickable:!0,tickColor:b.chartBorderColor,borderWidth:0,borderColor:b.chartBorderColor},tooltip:!0,tooltipOpts:{content:"%s for <b>%x:00 hrs</b> was %y",dateFormat:"%y-%0m-%0d",defaultTheme:!1},colors:[b.charMain,b.chartSecond],xaxis:{mode:"time",tickLength:10,ticks:15,tickDecimals:2},yaxis:{ticks:15,tickDecimals:0}})}}})});