Widgets.us.match.soccer.FactsAndFigures

A us.match.soccer.factsAndFigures (upcoming and live only) brings historical facts about team performances including losing and winning streaks, scoring averages as well as an intelligent algorithm that pushes the right questions at the right time during a live match.

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


new FactsAndFigures(props)

Parameters
Name Type Description
props object
Properties
Name Type Argument Default Description
matchId number

Match ID.

disableWidgetHeader boolean <optional>
false

When set to true, hides widget header.

enableBettingStimulationMode boolean <optional>
false

When set to true, show odds.

defaultCollapsed boolean <optional>
false

When set to true, sets widget to collapsed mode.

enableAutoplay boolean <optional>
true

When set to true, sets autoplay ON.

autoplayInterval boolean <optional>
5

Sets autoplay interval in seconds.

border boolean <optional>

When set to true, sets border around widget.

onTrack function <optional>

Function/event handler, see Widgets.onTrack.

oddsDeeplinkLabels object <optional>

An object of deeplinking labels.

deeplinkParams object <optional>

An object of deeplinking params.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.match.soccer.factsAndFigures" data-sr-match-id="18428258" data-sr-enable-autoplay="true"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/uscommon/widgetloader" data-sr-language="en_us" 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.media.sportradar.com/uscommon/widgetloader","USW", {
        language: 'en_us'
    });
    USW('addWidget', '#sr-widget', 'us.match.soccer.factsAndFigures', {matchId: 18428258, enableAutoplay: true});
</script>
<div id="sr-widget"></div>