Forum Discussion
Deneb - Independent Y-Axis Field on a facetted plot
- 3 years ago
Thanks hsavy, is this more of what you're after? I simply updated the resolve to set the scale as independent, as opposed to the axis. Let me know if you're trying to do something else.
"resolve": {"scale": {"y": "independent"}}
hsavy this was a tricky one. The layer inside the facet was throwing things off. The way the underlying Vega works, it wasn't recognizing the auto-generated signal called child_height. The solution was to create a param with the name, child_height. To avoid confusion, I didn't give the param a value. To update the vertical step, update the step value inside the spec for the facet.
A bit of a hack, but it works. Glad I was able to discover this in case I ever run into this down the road with any of my projects.
Here is the gist
What a solution :')
Good job finding this one trick. Maybe you could post this as a bug on the vega-lite git.
Thanks again, you're the goat