Repository navigation
Stacked Bar X-Axis (vertical) Annotation Line not working #514
|
Recently turned this piece of code into a stacked bar chart from a regular bar chart. Annotation was working on the x-axis. When switched to y-axis, line shows up fine. Couldn't find anything on the internet related to this issue, so I'm hoping someone here can help. Thanks. |
Answered by
stockiNail
Dec 1, 2021
Replies: 1 comment 1 reply
|
@Jacyle use https://codepen.io/stockinail/pen/KKXwoMb The access to the scale value by number uses the value passed as the index in the scale. I don't know if you can transform the labels from numbers to strings. in this case, you should be able to use the |
1 reply
Answer selected by
Jacyle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Jacyle use
value: 22instead ofvalue: 49.https://codepen.io/stockinail/pen/KKXwoMb
The access to the scale value by number uses the value passed as the index in the scale.
In this case, the labels as numbers but using the value as number, is looking for 50th value in the scale and not the numeric value 50.
I don't know if you can transform the labels from numbers to strings. in this case, you should be able to use the
value: '49'