This is a simple autoupdating angular directive to show sparklines in html. Changes on data will auto reflect in GUI.
Requires angularjs and highcharts or highstock.
Usage in html
<span hc-sparkline="data"></span>
in controller
$scope.data = [100, 150, 110, 120, 283, 121]
// or
$scope.data = '100,150,110,120,283,121'