Widgets.us.player.soccer.Comparison

A us.player.soccer.comparison brings comparison in categories such as goals scored, number of cards, assists, shots blocked, average conversion rate, minutes per goal, shots on /off target, total number of appearances...

In order to render player comparison, a matchId or both TeamUids have to be provided.
To render specific players, add both playerIds.
To limit statistics to a particular season, add seasonId or uniqueTournamentId.


new Comparison(props)

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

Player 1 Id.

playerId2 number

Player 2 Id.

teamUid1 number

Unique Team 1 Id.

teamUid2 number

Unique Team 2 Id.

seasonId number

Season Id.

uniqueTournamentId number

Unique Tournament Id.

matchId number

Match Id.

disableWidgetHeader boolean <optional>
false

When set to true, hides widget header.

disableProfile boolean <optional>
false

When set to true, hides profile data.

disableStatistics boolean <optional>
false

When set to true, hides statistics data.

border boolean <optional>

When set to true, draws border around widget.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.soccer.player.comparison" data-sr-team-uid1="2829" data-sr-team-uid2="44" data-sr-player-id1="750" data-sr-player-id2="143697" data-sr-season-id="41198"></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.player.soccer.comparison', {teamUid1: 2829, teamUid2: 44, playerId1: 750, playerId2: 143697, seasonId: 41198});
</script>
<div id="sr-widget"></div>