I tried doing it with Overlay but the output is not a new graphics object and boundaries of the chart are overlapping. Is there a way to do this to get a new graphics object with two vertical axis for barchart and listlineplot.

I want to have something like the following or better: enter image description here

  • $\begingroup$ I avoid Overlay whenever possible, because as you say it doesn't return a Graphics object. You should be able to adapt this answer to do what you want. You have to do these things: 1) rescale the list data so that it actually has the same range as the bar char, 2) rescale the frame ticks for the list plot so they reflect the original range, and 3) make the right-hand side FrameTicks blank on the bar chart. Then you just use Show to combine them $\endgroup$ – Jason B. Apr 25 '17 at 13:59
  • $\begingroup$ Can you post some sample data $\endgroup$ – Mike Honeychurch Apr 26 '17 at 0:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.