Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

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

NameTypeDescription
propsobjectproperties
NameTypeArgumentDefaultDescription
matchIdnumberrequiredMatch ID
disableWidgetHeaderbooleanoptionalfalseIf true hides the widget header.
disableMatchHeaderbooleanoptionalfalseIf true hides the match header.
disablePeriodsbooleanoptionalfalseIf true hides the period tabs.
disableChartsbooleanoptionalfalseIf true hides the statistics charts.
disableGroupsbooleanoptionalfalseIf true hides the statistics groups.
chartTypestringoptionalbarDisplay mode of the charts. Possible options: bar, bullet.
layoutstringoptionalnormalWhen set to compact, switches to a compact display. Possible options: normal, compact.
visibleStatsarrayoptional[]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.
borderbooleanoptionalIf 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>