hvega-0.5.0.0: tests/specs/config/vbTest.vl
{
"hconcat": [
{
"height": 200,
"mark": {
"size": 100,
"type": "point"
},
"width": 200,
"title": {
"color": "brown",
"text": "Car Scatter",
"fontSize": 12
},
"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": "bar",
"width": 200,
"view": {
"cornerRadius": 18,
"strokeWidth": 4,
"strokeCap": "round",
"strokeJoin": "bevel",
"stroke": "red",
"fill": "white",
"strokeDash": [
10,
10
]
},
"title": "Car Histogram",
"encoding": {
"color": {
"field": "Origin",
"type": "nominal"
},
"x": {
"field": "Horsepower",
"type": "quantitative"
},
"y": {
"aggregate": "count",
"type": "quantitative"
}
}
},
{
"height": 200,
"mark": "area",
"width": 200,
"view": {
"style": [
"myStyle",
"mySecondStyle"
]
},
"title": "Car Streamgraph",
"encoding": {
"color": {
"field": "Origin",
"type": "nominal"
},
"x": {
"field": "Year",
"timeUnit": "year",
"type": "temporal"
},
"y": {
"aggregate": "count",
"type": "quantitative",
"axis": null,
"stack": "center"
}
}
}
],
"config": {
"style": {
"mySecondStyle": {
"stroke": "blue",
"fill": "black"
},
"myStyle": {
"fill": "red",
"strokeOpacity": 1,
"fillOpacity": 0.1
}
},
"view": {
"fill": "#feb"
}
},
"data": {
"url": "https://vega.github.io/vega-lite/data/cars.json"
},
"resolve": {
"scale": {
"color": "independent",
"shape": "independent"
}
},
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"background": "yellow"
}