This commit is contained in:
Radek Stepan 2012-05-25 13:12:01 +01:00
parent 21ec2e8268
commit d840c26c4b
1 changed files with 10 additions and 0 deletions

View File

@ -57,6 +57,7 @@
<div class="row-fluid">
<div class="span12">
<div id="chart"></div>
<div id="timeline"></div>
</div>
</div>
</section>
@ -138,6 +139,15 @@
xAxis.render();
yAxis.render();
// Annotations.
var annotator = new Rickshaw.Graph.Annotate({
graph: graph,
element: document.getElementById('timeline')
});
annotator.add(new Date().getTime() / 1000, 'Now');
annotator.update();
})();
</script>