I have a bar chart with 4 series. 2 of the series are associated with one axis and the other 2 are associated with a different axis. I want to associate all with the same y-Axis label. A representation of what I want to show is below.
The closest I can get is shown below. How do I get my chart to look similar to the one above (colors aren't important, but showing as two separate groups of bars is)? My code is attached. Any guidance would be appreciated.
Thank you for posting in our community.
In order to achieve the required, only 2 yAxises can be used - one for the events and one for the hours. The xAxises seems to be fine. What’s really important is the order of drawing the series (how to order them in the series array). Attached you will find a sample illustrating my suggestion. Please test it on your side and let me know whether it helps you achieve your requirement.
Do not hesitate to contact me if you need any further assistance with this matter.
Best Regards,Martin Evtimov
Unfortunately, it is close, but not exactly what I needed. For each set of 2 bars, I need for one to be narrower than the other. I can't really get what I want by controlling the order, because I'm not guaranteed that the 2nd series defined for each set will be longer than the other. To make the example simple I only showed a single label on the left, but there could be many.
You have given me exactly what I needed. Great job and thank you.
Please do not hesitate to contact me if you have any further questions regarding this matter.