dangle.js is liveupdate?
D3 on AngularJS
from article:
http://pressanykeytocreate.blogspot.com/2013/03/best-of-7th-week-en.html
HTML
<script src="https://raw.github.com/fullscale/dangle/master/dist/dangle.js"></script>
<script src="http://www.fullscale.co/js/vendor/d3.min.js"></script>
<link rel="stylesheet" href="http://www.fullscale.co/css/dangle.css">
<div ng-app="myApp">
<div ng-controller="DangleCtrl" duration="1000">
<fs:date-histo bind="data" interval="minute"/>
</div>
</div>
JavaScript
angular.module('myApp', ['dangle']);
function DangleCtrl($scope, $timeout) {
$scope.data = {
_type: "date_histogram",
entries : []
};
function addOne() {
console.log('update');
$scope.data.entries.push({
time: Date.now(),
count: 10 * Math.random()
});
$timeout(addOne, 1000);
}
addOne();
}