-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
X-axis max doubled when adding stacked e_bars? #357
Comments
If that's of any consolation, it was difficult for me to figure out too. In Echarts.js the df_combined %>%
mutate(x = as.factor(x)) %>%
e_chart(x) %>%
e_bar(y_1, stack = "group") %>%
e_bar(y_2, stack = "group") With the above echarts4r observes that the data on the x axis is Let me know if this is not clear. |
I've added a note about it in the documentation. I should perhaps force the data type to Thanks again for reporting this. |
Ahhh that makes sense, thanks for clarifying! Looks great now. Also helps me understand why manually setting the limits didn't really do what I want - was definitely acting factor-like! Thanks! |
Hi! Thanks for this great package :)
I'm running into a strange issue where the x-axis max is doubled (?) when I'm adding two
e_bar()
s that are stacked. I want to create a bar chart where one bar is "highlighted", so I'm accomplishing that with two series.The x limits in the data are the same, and they each appear separately just fine:
When I combine, the styling looks as desired - I'm "fake" stacking them I guess, because I don't want the dodged behaviour, and that looks fine - but the x-axis max is doubled, going all the way to 10 instead of 5:
Any ideas why this might be? I'm using the latest version from github. I know you can manually set the limits, but it's hard to do that on a dynamic / not-manual basis. Thank you!
The text was updated successfully, but these errors were encountered: