ManuParra
ManuParra

Reputation: 1531

Make Anotations with Javascript Rickshaw

I use RickShaw for Graphics, but I need make a few anotattion on X axis for my graphics, I use the next:

var annotator = new Rickshaw.Graph.Annotate({
    graph: graph,
    element: document.getElementById('timeline')
});

annotator.add(timestamp, message)

with rickshaw d3.v2.js.

But it doesnt work!

Upvotes: 0

Views: 253

Answers (1)

BjrnSmn
BjrnSmn

Reputation: 376

You need to call annotator.update() after your annotator.add(...) call, see official 'annotation' example at Rickshaw Homepage, scroll down to section 'Annotations'

Upvotes: 1

Related Questions