-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Overlapping bar chart #857
Comments
take a look at how barSpace and groupSpace impact the bar rect. You may find a way to modify the barRect.Not sure if you use a negative value for barSpace and groupSpace, how much work you need. |
it seems a nice feature though :) |
@danielgindi The first example is what I was looking for. After experimenting with negative values in the bar spacing (and managing to get something like the second example) I ended up throwing together a subclass of BarChartRenderer to change bar widths and positions to get something like the first example. I'd still love to see this as a built-in option, though. |
Implemented in Charts 3.0 (v3 branch), you can now set the barWidth as a percentage. :-) |
@danielgindi can you help me out with how setting barWidth can provide the effect in the first example you posted in March? It looks like barWidth is only a property of BarChartData, when I want to set the relative width of a BarChartDataSet. |
@jemcelroy can you look at |
@liuxuan30 I have only been able to achieve something like the second example using the groupBars function. It seems impossible to achieve something like in the first example without being able to set the width of a BarChartDataSet. |
OK, it seems like it's not supported? need @danielgindi confirm |
Still would love to see this as a feature so I don't need to hack around to maintain our overlapping bar chart! Unsure as to why this was closed. |
Is it possible to create an overlapping bar chart? I took a look at the demo, but didn't see that as an option. Can the grouped bar chart be altered currently to overlap?
The text was updated successfully, but these errors were encountered: