Widgets.us.player.nhl.CareerStats

A us.player.nhl.CareerStats displays NHL seasonal teams statistics table.

For the widget to render you need to provide playerId.


new CareerStats(props)

props.skaterColumns options descriptions

optiondescription
gpGames Played
gGoals
aAssists
pPoints
pmPlus Minus
pimPenalty Minutes
ppgPower Play Goals
shgShort Handed Goals
shpShort Handed Points
gwgWinning Goals
otgOvertime Goals
sogShots (on Goal)
spShooting Percentage
toigpTime On Ice
fowpFaceoff Win Percentage

props.goalieColumns options descriptions

optiondescription
gpGames Played
gsGames Started
wWins
lLosses
otlOvertime Losses
gaGoals Against
gaaGoals Against Average
saShots Against
sSaves
svpSave %
shoShutouts
toiTime On Ice
Parameters
Name Type Description
props object
Properties
Name Type Argument Default Description
seasonId number <optional>

Player Id.

seasonDefaultSortDirection string <optional>
'asc'

Sets initial season column sort direction. Valid options are asc and desc...

skaterColumns string <optional>

Comma separated string of skater table statistics column keys. Used for picking picking fewer columns and different order. Valid options are gp, g, a, p, pm, pim, ppg, shg, shp, gwg, otg, sog, sp, atoi, fowp.

goalieColumns string <optional>

Comma separated string of goalie table statistics column keys. Used for picking picking fewer columns and different order. Valid options are gp, gs, w, l, otl, ga, gaa, sa, s, svp, sho, atoi.

disableTotalRow boolean <optional>

When set to true, disables the table total row.

hideBlankSeasons boolean <optional>

When set to true, hides blank season rows.

border boolean <optional>

When set to true, table is displayed with border.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.player.nhl.careerStats" data-sr-player-id="29571"></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.nhl.careerStats', {playerId: '29571'});
</script>
<div id="sr-widget"></div>