How can I dynamically add X-axis annotations? #3285
mickey-vershbow
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to dynamically add multiple X-axis annotations to a line chart? I'm aware of the addXaxisAnnotation method, and I've looked at this topic, which addresses a similar question. However, I am still not getting the result I want.
I have a list of annotation numbers + labels that I want to add to a chart like a factory function. I tried looping through the data and calling the
addXaxisAnnotation
method for each item, but the end result is that I only see an annotation marker for the last item in the list.Here is a codepen, and see below for an example of my code:
Beta Was this translation helpful? Give feedback.
All reactions