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("flotSinChart",function(){return{restrict:"E",replace:!0,template:'<div class="chart"></div>',scope:{data:"="},link:function(a,c){var d=$.plot(c,a.data,{series:{lines:{show:!0},points:{show:!0}},grid:{hoverable:!0,clickable:!0,tickColor:b.chartBorderColor,borderWidth:0,borderColor:b.chartBorderColor},tooltip:!0,tooltipOpts:{defaultTheme:!1},colors:[b.chartSecond,b.chartFourth],yaxis:{min:-1.1,max:1.1},xaxis:{min:0,max:15}});c.on("plotclick",function(a,b,c){c&&($("#clickdata").text("You clicked point "+c.dataIndex+" in "+c.series.label+"."),d.highlight(c.series,c.datapoint))})}}})});