hvega-0.5.0.0: tests/specs/gallery/table/table5.vl
{
"config": {
"text": {
"baseline": "middle"
},
"scale": {
"bandPaddingInner": 0,
"bandPaddingOuter": 0
}
},
"data": {
"url": "https://vega.github.io/vega-lite/data/cars.json"
},
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"layer": [
{
"mark": "rect",
"encoding": {
"color": {
"field": "*",
"aggregate": "count",
"type": "quantitative"
}
}
},
{
"mark": "text",
"encoding": {
"color": {
"value": "white"
},
"text": {
"field": "*",
"aggregate": "count",
"type": "quantitative"
}
}
}
],
"encoding": {
"x": {
"field": "Cylinders",
"type": "ordinal"
},
"y": {
"field": "Origin",
"type": "ordinal"
}
},
"description": "Layering text over 'heatmap'."
}