Closed jonheslop closed 4 years ago
Ok I got to the bottom of this, when it redraws the chart it updates the scale to fit the new data and that means it can cut off the annotation if it’s beyond the new scale.
So basically there is no bug, 🙈
Sorry for spam 🤦
I can render a line chart with data and an annotation with this
But when I update the chart with
updateData(data)
the annotation disappears (the data does update correctly)But if in the console I run
Chartkick.charts['connections'].getOptions()
I can still see the old annotation.I even tried this is my JS
This still doesn’t show the annotation but again when I put
Chartkick.charts['connections'].getOptions()
into the console it shows the updated annotation.Does anyone have any ideas?