Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Team Games Graphic

us.season.mlb.TeamGamesHistogram displays a seasonal win/loss histogram for a selected team.

All widget properties are optional. By default, the widget will render a table for the active season.

Parameters

Name Type Description
props object properties
Name Type Argument Description
seasonId number optional Season ID
teamUid number optional Unique Team ID
disableHeader boolean optional When set to true hides header.
disableSettings boolean optional When set to true completely hides setting controls.
disableMonthSelector boolean optional When set to true hides only month control.
border boolean optional When set to true the table is displayed with border.

Examples

<div class="sr-widget" data-sr-widget="us.season.mlb.teamGamesHistogram"></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.season.mlb.teamGamesHistogram', {});
</script>
<div id="sr-widget"></div>