Basketball Heat Map widget provides advanced visual shot distribution analysis for basketball matches through an interactive court visualization. It displays color-coded heat zones showing shot attempt frequency and success rates across different areas of the basketball court, allowing users to identify shooting patterns, hot zones, and team tendencies. The widget features period-by-period breakdown (quarters, overtime, full game), team filtering (home, away, or all teams), shot count vs percentage toggle, an interactive scoreboard for period navigation, and detailed scoring efficiency statistics for 3-point shots, 2-point shots, and free throws. This widget is essential for tactical analysis, game breakdowns, scouting reports, and providing fans with sophisticated visual insights into team shooting performance and court positioning strategies.
Shows the default view of the NBA Heat Map widget.
See the Basketball Heat Map widget demo.
match.basketball.heatMapEnvironment Requirements
Supported Sports
The Basketball Heat Map widget supports the following sports:
| Sport | Sport ID |
|---|---|
| Basketball | 2 |
| Esport Basketball | 153 |
This widget requires enhanced match tracking (LMT support level 3+). Matches without sufficient event coordinate data will display only scoring statistics without the court visualization. The widget checks match coverage and displays an error if statistics are not available: "No data available".
Illustrations of main feature variants with relevant property values below.
Shows the default view of the NBA Heat Map widget.
Sample Configuration:
See Basketball Heat Map widget demo
Properties do not always transfer from the above table directly into integration code. Properties must be transformed differently for each integration method:
SIR() callcardVariant: "compact"In javascript integration, the properties go into an object which is passed as the 4th argument of the call ti SIR() function. Please see Global SIR API
data-sr- prefixcardVariant → data-sr-card-variant| Property | Type | Default | Description |
|---|---|---|---|
matchId | number | Required | The unique identifier for the match. See Getting Identifiers |
disableWidgetHeader | boolean | false | When true, hides the widget header displaying tournament/season information. |
disableMatchHeader | boolean | false | When true, hides the match header with team names, scores, and match details. |
disableScoreboard | boolean | false | When true, hides the period selection scoreboard. Users cannot select specific periods when disabled. |
string|numberfilters.sport.hidden → Complex objects must be passed as JSON stringsIn HTML integration, the properties go into the parent HTML object as object properties, prefixed with data-sr- as explained above.
This method supports only simple (base) properties and does not support properties that require functions.
In all examples replace sportradar in the widgetloader URL path with your clientId.
Example if your clientId is client1:
https://widgets.sir.sportradar.com/sportradar/widgetloaderhttps://widgets.sir.sportradar.com/client1/widgetloaderInitialize the widget programmatically using the JavaScript API. The widget renders in the specified container element.
(function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
g=b.createElement(c),h=b.getElementsByTagName(c)[0],g.async=1,g.src=d,g.setAttribute("n",e),h.parentNode.insertBefore(g,h)
)})(window,document,"script","https://widgets.sir.sportradar.com/sportradar/widgetloader","SIR", {
language: 'en'
});
SIR('addWidget', '#sr-widget', 'match.basketball.heatMap', {
matchId: 123
});<div id="sr-widget"></div>Insert the following HTML code at the target widget location. Complex object properties must be passed as JSON-encoded strings.
<div id="sr-widget"
data-sr-widget="match.basketball.heatMap"
data-sr-match-id="123">
</div>
<script type="application/javascript"
src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
async>
</script>