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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors