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.
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
initConfig
) set the first x axis’s properties, but it doesn’t do anything for your 2nd x axis – so we need to set it explicitly (includingcategoryPercentage
andbarPercentage
– even if we are using onlybarThickness
).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.