-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Several bars, 2 y axis, one stacked bar #5557
Comments
Can you profide a jsfiddle? |
Here it is: https://jsfiddle.net/e8n4xd4z/9385/ Now it's using version 2.7.2 and you can see the x labels are off because it is drawing another bar (0 value) which I don't need. Funny enough, If you change (on the left pane) to version 2.3.0, it will be drawn perfectly. |
I added a jsFiddle, has anyone had the chance to have a look? it looks like something that was change in the newer versions, previously it worked ok. |
A silly suggestion - use the old version then. |
Right, but that means there's a bug somewhere starting version 2.4.1, shouldn't it be fixed? |
Seems that bug has been introduced in 2.5.0, maybe by #3563 if someone wants to investigate. |
Thanks, does that mean I should continue the conversation there? |
Yes, the PR is closed and I doubt anybody will follow up on new comments. This issue needs to be investigated, maintainers are not currently available so PR are more than welcome :) |
By PR you mean referencing to it hoping someone will catch and check it? Thanks a lot! |
I mean any volunteer investigating and fixing this issue, then submitting the code changes via Pull Request. |
Can't you revert the code that broke it instead if you knew what broke it? |
@amosss @kurkle I'm actually thinking that the current behavior is the expected one because we introduced stack groups at version 2.5.0 and so create distinct stacks (per axis) for every different dataset
@amosss if you want the same behavior as 2.4.0, simply remove |
Closing this issue per my previous comment. |
Hi
I have a chart with 6 data items: a,b,c,d,e,f
a,b,c are for the same axis/scale (left)
d,e,f are for the same axis/scale (right)
So far so good, with 2 datasets and 2 scales -> y axes, one left one right.
Now I made b and c stacked and linked to the left axis. The problem is that now the labels on the x axis are a bit off because it thinks it should draw another bar where it shouldn't (its value is 0). I tried
xAxes: [{stacked: true}],
but it didn't change anything.Any hints/tips on how to achieve it?
Thanks
The text was updated successfully, but these errors were encountered: