vega / vega-lite

A concise grammar of interactive graphics, built on Vega.
https://vega.github.io/vega-lite/
BSD 3-Clause "New" or "Revised" License
4.56k stars 594 forks source link

Merge (main and grid) axes #5158

Open domoritz opened 5 years ago

domoritz commented 5 years ago

Now that axes are behind marks (https://github.com/vega/vega-lite/pull/5151), do we still need two axes? I merged the two axes and it looks pretty nice in this example.

kanitw commented 5 years ago

Your Vega example uses zindex=1 for x-axis. If you change the zindex to 0, then you get the same problem that I mention in https://github.com/vega/vega/issues/1865.

Once https://github.com/vega/vega/issues/1865 is fixed, we can (and clearly should) merge the axes. (We currently only split them due to the limitation in Vega.)