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"}}
You can also share your data with your spec. Please see this video.
https://www.youtube.com/watch?v=SQt1qv24BKY
Pat
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
- giammariam3 years agoSolution Sage
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.