Adding annotations by time #588
Unanswered
thijserven
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, is it possible to add a pre-defined set of annotation marker that represent a certain event to the chart?
If I understand correctly the only possible way is doing this is like shown this example: https://github.com/react-financial/react-financial-charts/blob/main/packages/stories/src/features/annotated/Annotated.tsx
This way the "when" function basically determains whether or not an annotation gets placed on the x-axis. (In the example above it places the same pre-defined annotation wherever the day is a monday.
However in my use case I have a pre-defined set of annotations that indicate an event on the timeline. Is it possible to add the annotations by time?
So for example something like this where it simply loops through the array of annotations and places it at the correct place on the time axis (y-axis):
Beta Was this translation helpful? Give feedback.
All reactions