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"}}
Hoosier always here to help ahha
Issue On VegaLite hsave (github.com)
Vega Editor
Here is a gist containing the data and code.
As you can see, Product 1 and Product2 are shown according to all versions.
I would like to display product1 according to his versions and product2 according to his versions.
Thank you guys
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"}}- hsavy3 years agoFrequent Visitor
Wow, that was that easy :')
I may had some issue to different scale and axis as a non english speaker.
Thanks for you help and quick answers. Really appreciate ! - hsavy3 years agoFrequent Visitor
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