Forum Discussion
Side by Side Bar Chart - Using Deneb - Using a common Y axis
- 2 years ago
Hey dkernen2, thank you for the .pbix, all the detailed info, and the tag. Let me know if this is what you're after:
Changes:
- Added resolve to make the y-axis and y-scale shared
- Set the second chart's y-axis axis to null
- (optional) increased the spacing between the charts from 20 (default) to 40
Hi giammariam I've tried to change the height to be variable, so that the bars fill the allotted space, but they remain a fixed height. I've tried to put a height declaration in "spec" as well as the "height" overall, but I cannot seem to get anything to work. Where can I make the height so that I either it is dynamic with however side the user uses in the GUI OR set it to a fixed size and then use a formula so that the bar height relates to the number of categories? Do you have any ideas? You appear to be superhuman in your VegaLite!
https://kauffman.box.com/s/3ypt201mq20hmycva1g3jn28ugw1bre7 Report: SideBySideBarSharedY