Widgets.us.season.ScorePerGameRanks

us.season.scorePerGameRanks displays two teams season score per game average with season rank on bar chart.

For the widget to render you need to provide:

  1. matchId or
  2. teamUid1, teamUid2 combined with one of the seasonId, tournamentId or uniqueTournamentId.

new ScorePerGameRanks(props)

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

Match id identifies match and has priority over other options. The match deduces season and teams.

teamUid1 number <optional>

Unique team id 1.

teamUid2 number <optional>

Unique team id 2.

seasonId number <optional>

Season id.

tournamentId number <optional>

Tournament id ...deduce season.

uniqueTournamentId number <optional>

Unique tournament id ... deduce season.

showRankTitle number <optional>

If set to true shows rank title.

statisticType number <optional>
'own'

Which score to show? Valid values: own, opponent.

disableHeader number <optional>

If set to true hides the header.

border number <optional>

If true enables a border around the widget.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.season.scorePerGameRanks" data-sr-match-id="12232934" ></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.season.scorePerGameRanks', {teamUid1: 3435, teamUid2: 3431, uniqueTournamentId: 132});
</script>
<div id="sr-widget"></div>