title: How to plot line plot with vertical-based data (well-log)?
body: <p>I was trying to plot geophysics data (well-log) into a scatter plot in Altair using mark_line function, but the line plot is not connecting the dots/ points from top-bottom, but rather from left-right. If you see figure on the left, the data is distributed vertically as clearly seen, in the middle is the result using mark_line, and on the right is the one I wanted, just flipped the X and Y axis.</p>
  <p>Is there any way to make a plot to behave just like left figure, but in line encoding?</p>
  <p>Or perhaps some form of hacks to flipped the display on the right figure?</p>
  <pre><code>chart1 = alt.Chart(w).mark_point(color='green').encode(
    alt.X('GR', scale=alt.Scale(domain=[0,300])),
    alt.Y('DEPT', scale=alt.Scale(domain=[7000, 7100])),
  ).interactive()
  
  
  chart2 = alt.Chart(w).mark_line(color='green').encode(
    alt.X('GR', scale=alt.Scale(domain=[0,300])),
    alt.Y('DEPT', scale=alt.Scale(domain=[7000, 7100])),
  ).interactive()
  
  
  
  chart3 = alt.Chart(w).mark_line(color='green').encode(
    alt.Y('GR', scale=alt.Scale(domain=[0,300])),
    alt.X('DEPT', scale=alt.Scale(domain=[7000, 7100])),
  ).interactive()
  
  chart1 | chart2 | chart3
  
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/U54PL.png" rel="nofollow noreferrer">Plot using Altair</a></p>
  <p><em>For those who needs more information, this is a typical dataset from borehole geophysics data/ well-log. Data (GR) is displayed in vertical line, against depth (DEPT).</em></p>
  <p>Thanks for the help!</p>