Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
in vega lite is it possible to add data label to the below code so labels would show on the table heatmap -
"data": {"name": "dataset"},
"mark": "rect",
"encoding": {
"x": {"field": "Subcategory", "type": "nominal"},
"y": {"field": "Metric", "type": "ordinal",
"bin":{"maxbins":10}},
"color": {"aggregate": "count", "field": "Horsepower"}
},
"config": { "axis": {"grid": true, "tickBand": "extent"}
}
}
I have tried adding a layer but it doesnt seem to work when with a 'rect' mark but must be something i am missing.
TIA
JJ
certainly is possible Layering text over heatmap | Vega-Lite
Proud to be a Super User!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.