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 graph with bar different width #3946
Comments
@karthiksd9 this is mostly possible. You can take a look at #3849 to get some ideas |
@etimberg Thanks for the reply. Finally i need one smaller size bar inside a larger one. |
@etimberg .Please help me. can this be achieved using How to have 2 |
It's unfortunately not possible to have 2 categoryPercentage options on the same graph. It might be easier to make a new chart type that places and sizes the bars the way you would like |
You could also write a plugin to override the thicknesses for one of the datasets after they have been set.
See https://jsfiddle.net/17hvoa9t/11/ However, since this messes around with the internal variables, I don't think there won't be a guarantee that it will work though version changes. Cheers! Note - because of #3849, you can't use v2.5.0. You'll need to use v2.4.0 or the next release. |
I checked this again to figure out why the 2nd x axis wasn't working and realized you don't actually need a plugin that messes with internal variables. For the same effect as above, set your 2nd x axis properties like so
The bar controller defaults (and the core controller's Fiddle - https://jsfiddle.net/17hvoa9t/12/ Note - the caveat about #3849 still holds. You can't use v2.5.0. You'll need to use v2.4.0 or the next release. |
WOW! @etimberg , @potatopeelings Thanks a lot guys. This is just perfect. |
I don't know whether it is possible or not. But here is my requirement:
I want a chart having 2 bar overlapped over one another (not stacked).
The width of inner bar should be smaller than the outer bar.
If this is possible can anyone post a sample code in fiddle.
Thanks in advance.
The text was updated successfully, but these errors were encountered: