Betting Entertainment Tools

General Statistics

A match.generalStatistics brings general statistics such as ball possession, shots on target, shots of target, yellow and red cards, free kicks, offsides, fouls, substitutions, etc.

It also supports basketball matches with statistics such as free throws, two pointers, three pointers, total fouls, rebounds, timeouts, biggest lead, lead changes, etc.

For the widget to render you need to provide matchId, other properties are optional.

Parameters
Name Type Attributes Default Description
props object <required>
matchId number <required>

Match ID.

disableWidgetHeader boolean false

When set to true, hides widget header.

disableMatchHeader boolean false

When set to true, hides match header.

disablePeriods boolean false

When set to true, hides periods tabs.

disableCharts boolean false

When set to true, hides statistics charts.

disableGroups boolean false

When set to true, hides statistics groups.

chartType string bar

Display mode of charts. Possible options: bar, bullet.

layout string normal

When set to compact, switches to compact display. Possible options: normal, compact.

visibleStats array []

When set to non-empty value, it only displays statistics types specified in the array (if they are available for selected match).

Possible options:
`ball_possession`,
`dangerous_attack`,
`attack`,
`ball_safe`,
`dangerous_attack_percentage`,
`attack_percentage`,
`ball_safe_percentage`,
`goal_attempts`,
`shot_on_target`,
`shot_off_target`,
`corner_kick`,
`free_kick`,
`offside`,
`goal_kick`,
`thown_in`,
`yellow_card`,
`yellow_red_card`,
`red_card`,
`player_substitution`,
`save`,
`fouls`,
`injury`,
`free_throws`,
`two_points`,
`three_points`,
`success_attempts`,
`rebounds`,
`biggest_lead`,
`lead_changes`,
`time_spent_in_lead`,
`timeouts`,
`breaks`,
`aces`,
`double_faults`,
`first_serve_points`,
`second_serve_points`,
`first_serve_success`,
`second_serve_success`,
`service_points`,
`receiver_points`,
`games_won`,
`tiebreaks`,
`max_points_in_a_row`,
`max_games_in_a_row`.

Stats are ordered as in `visibleStats` prop but grouped inside their respective groups.

When `disableGroups` is set to `true`, order of stats is the same as specified in `visibleStats` prop.

onTrack function

Function/event handler, see Tracking options.

Examples

HTML/Declarative

<div id="sr-widget" data-sr-widget="match.generalStatistics" data-sr-match-id="25327336"></div>
<script type="application/javascript" src="https://widgets.sir.sportradar.com/sportradar/widgetloader" async></script>

JS/Programmatic

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