Optimized Angular Directive

Same as normal sparkline.js optimizations.