scale independent conflicts with height
See original GitHub issueI use altair (see issue) to render a vega_lite Chart with two figures that have independent y-axis and different heights. How ever, the second height does not have an effect. The vega-lite JSON looks like:
{
"config": {
"view": {
"continuousWidth": 400,
"continuousHeight": 300
}
},
"vconcat": [{
"layer": [{
"mark": "line",
"encoding": {
"color": {
"type": "nominal",
"field": "symbol"
},
"y": {
"type": "quantitative",
"field": "price"
}
},
"width": 850
}, {
"mark": {
"type": "area",
"opacity": 0.4
},
"encoding": {
"y": {
"type": "quantitative",
"aggregate": "average",
"field": "price"
}
},
"width": 850
}],
"encoding": {
"x": {
"type": "temporal",
"field": "date"
}
},
"height": 260,
"resolve": {
"scale": {
"y": "independent"
}
}
}, {
"layer": [{
"mark": "line",
"encoding": {
"color": {
"type": "nominal",
"field": "symbol"
},
"y": {
"type": "quantitative",
"field": "price"
}
},
"width": 850
}, {
"mark": {
"type": "area",
"opacity": 0.4
},
"encoding": {
"y": {
"type": "quantitative",
"aggregate": "average",
"field": "price"
}
},
"width": 850
}],
"encoding": {
"x": {
"type": "temporal",
"field": "date"
}
},
"height": 60,
"resolve": {
"scale": {
"y": "independent"
}
}
}],
"data": {
"url": "https://vega.github.io/vega-datasets/data/stocks.csv"
},
"$schema": "https://vega.github.io/schema/vega-lite/v4.8.1.json"
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Scaling of adult body weight to height across sex and race ...
Objectives: The objectives were to test the hypothesis that adult BW scales to height with a power of 2 independent of sex and...
Read more >How to handle both width and height without conflict?
I woud like that if my viewport width is smaller than 330px, the paragraphs font will be 9px, whatever its height. In the...
Read more >scale - CSS-Tricks
The scale property in CSS resizes an element's width and height in proportion. So, if we have an element that's 100 pixels square,...
Read more >The association between weight, height, and head ... - Nature
Correia and coworkers (2) found birth weight and birth head size to be associated with head size and cognitive abilities in childhood and...
Read more >Manipulating Axes Aspect Ratio - MATLAB & Simulink
Provide the highest resolution in the available space by setting the scale of each axis independently (when DataAspectRatioMode and the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ahh, here: Open the Chart in the Vega Editor.
Somehow there is only a single height property. That is definitely wrong.
I have a fix that I will push in a second.