An example of how to create your own sparkline dirctive in AngularJS using replace
and transclude
This is a code excerpt from the book D3 on Angular. http://leanpub.com/d3angularjs
Modified http://d3js.org/d3.v3.min.js to a secure url
https://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js
https://d3js.org/d3.v3.min.js