Vertical Timeline widget displays a chronological feed of match events in a visually engaging vertical layout. It presents key moments from the match including goals, assists, cards, substitutions, fouls, timeouts, and other significant events with timestamps, player names, icons, and score updates. The widget features a central vertical line with events branching to the left (home team) or right (away team), creating an intuitive visualization of match flow. Events are displayed in reverse chronological order (most recent first) with period boundaries clearly marked. The widget supports multiple layout options (central, toSides) to adapt to different design contexts. Each event shows detailed information including player names, scores, and event-specific icons. This widget is essential for live match coverage, post-match analysis, detailed event tracking, providing play-by-play commentary, and helping users understand the complete match narrative through visual storytelling.

Shows the default view of the Vertical Timeline widget.

Groups events by periods for better visualization.

Displays events on the sides of the timeline for a better visual overview.
See the Vertical Timeline widget demo.
match.verticalTimelineEnvironment Requirements
Supported Sports
The Vertical Timeline widget supports the following sports:
| Sport | Sport ID |
|---|---|
| Soccer | 1 |
| Basketball | 2 |
| Esport Soccer | 137 |
| Esport Basketball | 153 |
| Esport Ice Hockey | 195 |
Filter Combinations:
// Single filter
filter: "goals"
// Multiple filters (comma-separated)
filter: "goals,cards"
filter: "goals,cards,substitutions"
// All events (no filter)
filter: null // or omit propertyIllustrations of main feature variants with relevant property values below.
See Vertical Timeline 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 match info header (match status, time, venue, etc.). Use when embedding in contexts where match information is already displayed. |
disableMatchHeader | boolean | false | When true, hides the team header with crests and names. Use for minimal display or when team information is shown elsewhere. |
filter | string | null | Event filter configuration. See Event Filter Options |
eventsLayoutOption | string | "mixed" | Event layout mode. Options:
|
sortByPeriods | boolean | false | When true, enables period filtering buttons and allows users to view events by specific periods/quarters/halves. Buttons appear above timeline. |
goals: Goal events (including own goals, penalty goals)cards: Yellow cards, red cards, yellow-red cardscorners: Corner kick eventssubstitutions: Player substitutionspenalties: Penalty kicks, penalty missesother: All other events (free kicks, offsides, shots, saves, etc.)Shows the default view of the Vertical Timeline widget.
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.verticalTimeline', {
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.verticalTimeline"
data-sr-match-id="123">
</div>
<script type="application/javascript"
src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
async>
</script>