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.
|
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
@Jacyle use
value: 22
instead 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'