Closed basilesimon closed 5 years ago
Suggestion:
{annotationDebug:false,
annotations:function(self){
if (!self){self = this};
return [
{
note: {
label: "Ha!",
wrap: 120,
dyOffset:1.1,
},
connector: {
end: "arrow",
},
data:{date:"08/01/2018”,value:2},
dy: -30,
dx: 0
},
{
note: {
label: "Hahaha!",
wrap: 150,
dyOffset:1.2,
},
connector: {
end: "arrow", type: "curve", points:[[-35,5]]
},
data:{category:”France",value:4},
dy: 40,
dx: -35
},
]
}
}
There is an extensive example annotation.js file included in the generator, that should be in the scripts folder already for every project. Are you suggesting I also put one in the ReutersCharter folder? (can do, just checking for clarity.)
Oh. I had not seen this file. Makes sense now, and sounds fine for me too. Happy to close this issue.
Right now
chartblock.js
instructs:Should we include an example of
annotations.js
?Would have helped at least @fcage and I in the last two days :)