Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

point annotations where xaxis labels are an array #2012

Closed
elliotashton opened this issue Nov 1, 2020 · 2 comments · Fixed by TanDuy03/ntanduy-cloud#202 · 4 remaining pull requests
Closed

point annotations where xaxis labels are an array #2012

elliotashton opened this issue Nov 1, 2020 · 2 comments · Fixed by TanDuy03/ntanduy-cloud#202 · 4 remaining pull requests
Labels
bug Something isn't working

Comments

@elliotashton
Copy link

Bug report

I'm 100% sure if this is a bug (or a lack of capability on my part) but I am unable to add an annotation to a stack bar chart where the xaxis categories are an array for each category (used to create line feeds for long labels). I've confirmed that I am able to do this with a single string value for each category.

this is what I get for a string

image

this is what I get for an array

image

Note that the annotation no longer appears. It seems that the x value needs to be a string to match. I've tried to pass an array matching the category array but not achieved a match. This is the array that describes the xaxis categories:
image

Explanation

  • I expect that the point annotation x value can match for an array
  • The annotation is not finding an xaxis category match where the xaxis category is an array
  • no error message
@junedchhipa junedchhipa added the bug Something isn't working label Nov 2, 2020
@junedchhipa
Copy link
Contributor

I guess, this is a bug but I need a Codepen to confirm. Can you please create a Codepen example?

@elliotashton
Copy link
Author

I've created a pen here. Note that the xaxis hasn't rotated even though the attribute is set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment