Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DW868990
Helper IV
Helper IV

Deneb - Data Labels to a Heat Map

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

1 REPLY 1
KerKol
Power Participant
Power Participant

certainly is possible Layering text over heatmap | Vega-Lite





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors