AngularJS directives using jqPlot