hvega-0.12.0.7: tests/specs/config/mark2.vl
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"config": {
"area": {
"filled": false
},
"bar": {
"filled": true
},
"mark": {
"fill": "black",
"filled": true,
"opacity": 1
},
"point": {
"filled": true,
"stroke": "white",
"strokeOpacity": 0.2
}
},
"data": {
"url": "https://vega.github.io/vega-lite/data/cars.json"
},
"hconcat": [
{
"encoding": {
"color": {
"field": "Cylinders",
"type": "ordinal"
},
"shape": {
"field": "Origin",
"type": "nominal"
},
"x": {
"field": "Horsepower",
"type": "quantitative"
},
"y": {
"field": "Miles_per_Gallon",
"type": "quantitative"
}
},
"height": 200,
"mark": {
"size": 100,
"type": "point"
},
"title": "Car Scatter",
"width": 200
},
{
"encoding": {
"color": {
"field": "Origin",
"type": "nominal"
},
"x": {
"field": "Horsepower",
"type": "quantitative"
},
"y": {
"aggregate": "count",
"type": "quantitative"
}
},
"height": 200,
"mark": "bar",
"title": "Car Histogram",
"width": 200
},
{
"encoding": {
"color": {
"field": "Origin",
"type": "nominal"
},
"x": {
"field": "Year",
"timeUnit": "year",
"type": "temporal"
},
"y": {
"aggregate": "count",
"axis": null,
"stack": "center",
"type": "quantitative"
}
},
"height": 200,
"mark": "area",
"title": "Car Streamgraph",
"width": 200
}
],
"resolve": {
"scale": {
"color": "independent",
"shape": "independent"
}
}
}