Widget Docs
Coverage MatrixDocumentationRelease LogLog InContact Us

Game General Statistics

us.match.generalStatistics provides general quarter-by-quarter statistics for a given game, including free throws made, two-pointers/three-pointers made, fouls, rebounds, and lead changes.

For the widget to render you must provide a valid matchId. All other properties are optional.

Parameters

Name Type Description
props object properties
Name Type Argument Default Description
matchId number required Match ID
disableWidgetHeader boolean optional false If true hides the widget header.
disableMatchHeader boolean optional false If true hides the match header.
disablePeriods boolean optional false If true hides the period tabs.
disableCharts boolean optional false If true hides the statistics charts.
disableGroups boolean optional false If true hides the statistics groups.
chartType string optional bar Display mode of the charts. Possible options: bar, bullet.
layout string optional normal When set to compact, switches to a compact display. Possible options: normal, compact.
visibleStats array optional [] When set to a non-empty value, the widget only displays stat types specified in the array. See below for valid options. When disableGroups is set to true the stats are ordered as specified in the visibleStats prop.
border boolean optional If true draws a border around the widget.
visibleStats Options:
free_throws
two_points
three_points
success_attempts
max_points_in_a_row
rebounds
biggest_lead
lead_changes
time_spent_in_lead
timeouts

Examples

<div class="sr-widget" data-sr-widget="us.match.generalStatistics" data-sr-match-id="28808890"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader" data-sr-language="en_us" async></script>

<script>
    (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.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.match.generalStatistics', {matchId: 28808890});
</script>
<div id="sr-widget"></div>