General Statistics widget displays comprehensive match statistics comparing both teams across multiple categories including possession, shots, passes, fouls, and other sport-specific metrics. The widget presents data using visual bar or bullet charts for easy comparison, organized into logical groups (e.g., Attack, Defense, Discipline), with period filtering to analyze performance across halves, quarters, or the entire match. It supports multiple sports with sport-specific statistics configurations, responsive layouts adapting to various screen sizes, and customizable display options including chart types, layout density, and visible statistics selection.
Shows the default view of the General Statistics widget.
See the General Statistics widget demo.
match.generalStatisticsEnvironment Requirements
Supported Sports
The General Statistics widget supports the following sports:
| Sport | Sport ID |
|---|---|
| Soccer | 1 |
| Basketball | 2 |
| Baseball | 3 |
| Ice Hockey | 4 |
| Tennis | 5 |
| Handball | 6 |
| Rugby | 12 |
| Football | 16 |
| Snooker | 19 |
| Table Tennis |
visibleStats property is an array of sport IDs to display. Statistics are ordered as defined in the array. Order is maintained within groups whendisableGroups: false is used.
[
'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',
Illustrations of main feature variants with relevant property values below.
Shows the default view of the General Statistics widget.
See General Statistics 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| 20 |
| Darts | 22 |
| Volleyball | 23 |
| Futsal | 29 |
| Badminton | 31 |
| Beach Volley | 34 |
| Esport Soccer | 137 |
| Esport Basketball | 153 |
| Esport Ice Hockey | 195 |
| Property | Type | Default | Description |
|---|---|---|---|
matchId | number | Required | The unique identifier for the match. See Getting Identifiers |
chartType | string | "bar" | Visualization style for statistics comparison.
|
layout | string | "normal" | Layout density and spacing.
|
disableWidgetHeader | boolean | false | When true, hides the match information header (competition, date, status). |
disableMatchHeader | boolean | false | When true, hides the team names/crests header section. |
disablePeriods | boolean | false | When true, hides the period selector tabs. Shows full match statistics only. |
disableCharts | boolean | false | When true, hides all visual charts, displaying only numeric values and labels. |
disableGroups | boolean | false | When true, removes category grouping and section headers, showing all statistics in a flat list. |
visibleStats | array | See Visible stats identifiers | Array of statistic IDs to display. When set, only specified statistics are shown (if available for selected match). |
Sample Configuration:
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.generalStatistics', {
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.generalStatistics"
data-sr-match-id="123">
</div>
<script type="application/javascript"
src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
async>
</script>