Team Seasonal Statistics
us.season.mlb.teamsStats displays a sortable team statistics table for all teams in a given season.
All widget properties are optional. By default, the widget will provide a table for the active season.
Parameters
Name | Type | Description | ||||
---|---|---|---|---|---|---|
props |
object | properties | ||||
Name | Type | Argument | Default | Description | ||
seasonId |
number | optional | active season | Season ID | ||
seasonType |
string | optional | 'regular' | Season type: regular / playoffs . |
||
category |
string | optional | 'hitting' | Category: hitting / pitching . |
||
conference |
string | optional | Conference filder: al / nl . |
|||
border |
boolean | optional | When set to true the table is displayed with a border. |
|||
disableTitle |
boolean | optional | When set to true hides the widget title. |
|||
hideFilters |
boolean | optional | When set to true hides all filters / dropdown. |
|||
hittingColumns |
string | optional | Comma separated string of hitting table statistics column keys. Used for picking fewer columns and different order. Valid options are: ab , r , h , 2b , 3b , hr , rbi , bb , k , tb , sb , cs , ba , obp , slg , ops , iso , babip , bbk , goao , xbh , abhr . |
|||
pitchingColumns |
string | optional | Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are: w , l , era , sv , svo , ip , h , r , er , hra , bb , k , oba , whip , k9 , kbb , go , ao , qs , cg , sho . |
|||
onItemClick |
function | optional | Function/event handler. Emits uniqueTeamId , seasonId , uniqueTournamentId on table row click or touch. |
hittingColumns Option Descriptions
Option | Description |
---|---|
ab |
At Bats |
r |
Runs |
h |
Hits |
2b |
Doubles |
3b |
Triples |
hr |
Home Runs |
rbi |
Runs Batted In |
bb |
Walks |
k |
Strikeouts |
tb |
Total Bases |
sb |
Stolen Bases |
cs |
Caught Stealing |
ba |
Batting Average |
obp |
On Base Percentage |
slg |
Slugging Percentage |
ops |
On-Base + Slugging Percentage |
iso |
Isolated Power |
babip |
Batting Average on Balls in Play |
bbk |
Strikeout-to-Walk Ratio |
gofo |
Ground Out/Fly Out Ratio |
goao |
Ground Out/Air Out Ratio |
xbh |
Extra-base Hits |
abhr |
At Bats per Home Run |
pitchingColumns Option Descriptions
Option | Description |
---|---|
w |
Wins |
l |
Losses |
era |
Earned Run Average |
sv |
Saves/td> |
svo |
Save Opportunities |
ip |
Innings Pitched |
h |
Hits Allowed |
r |
Runs Allowed |
er |
Earned Runs |
hra |
Home Runs Allowed |
bb |
Walks |
k |
Strikeouts |
oba |
Opponents' Batting Average |
whip |
Walks + Hits Per Inning Pitched |
k9 |
Strikeouts per Nine Innings |
go |
Groundouts |
fo |
Flyouts |
kbb |
Strikeout-to-Walk Ratio |
goao |
Ground Out/Fly Out Ratio |
qs |
Quality Starts |
cg |
Complete Games |
sho |
Shutouts |
Examples
<div class="sr-widget" data-sr-widget="us.match.mlb.teamsStats" data-sr-season-id="79507"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader" data-sr-language="en_us" async></script>
<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/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
language: 'en_us'
});
SIR('addWidget', '#sr-widget', 'us.match.mlb.teamsStats', {seasonId: 79507});
</script>
<div id="sr-widget"></div>
<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/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
language: 'en_us'
});
SIR('addWidget', '#sr-widget', 'us.season.mlb.teamsStats', {onItemClick: function(type, obj){alert('uniqueTeamId: ' + obj.uniqueTeamId);}});
</script>
<div id="sr-widget"></div>
Updated over 1 year ago