Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2515
How to define 2 axes with all series as separate bars
posted

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.

BarChartTest3.zip

Parents
  • 720
    Offline posted

    Hello Ray,

    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

    3884.NestedBarChart.zip

Reply Children