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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors