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"}}
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"}}Thanks again. I also tried to change the height of each facet according to the number of version. Do you think it's possible ?
I've tried with a calculate and with "height" : calculated_height, but it said it had to constant 😕
- giammariam3 years agoSolution Sage
hsavy I believe so. Can you share the formula that you tried to implement for calculated_height? This may be doable by manipulating the y-scale output range values.
Or a better option is to probably use step for the height instead of a fixed value. See here and let me know.
- hsavy3 years agoFrequent Visitor
giammariam I couldn't find exactly what I've tried but it was something like :
"transform" : [{"calcultate" : length("List_of_version"), "as" calculated_height}
]
But it couldn't work correctly in this version, rising the error : height as to be constant.
When I try to put a step height in my facet spec, the error raising is "missing child_height signal".
I am currently looking for an other solution- giammariam3 years agoSolution Sage
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