This is our old blog. It hasn't been active since 2011. Please see the link above for our current blog or click the logo above to see all of the great data and content on this site.

Team Schedule Sparklines on Team Pages

Posted by Sean Forman on April 11, 2011

2002 Oakland Athletics Batting, Pitching, & Fielding Statistics -

If you look above the team batting stats you will now see a graphical summary of the team's season.  The height of the bar is equal to the margin of victory (up to ten runs).  Losses are in red and wins are in green.

I've grouped the games by month.  Double-headers are slightly narrowed since they occurred on the same day.  Off days are included as blanks, and if you mouse over the bar you will see a summary of the game as shown below. Clicking on the bar will take you to the box score.

Mouseover a bar to show the game's details

Currently this is updated back through 1985, but we'll have every team updated within an hour or so.

18 Responses to “Team Schedule Sparklines on Team Pages”

  1. John Q Says:

    That's excellent!

  2. Doug Says:

    Great job!!! Really cool tool.

    Baseball-reference strikes again!!!!

  3. DavidRF Says:

    Very cool. If you could fit the "GB" column into the tooltip it would be even better.

  4. statboy Says:

    Very cool. But, I'm a little bummed that there isn't a very long bar on August 22nd, here...

  5. Cheese Says:

    for a 9-7 game?

  6. Cheese Says:


  7. Cheese Says:

    For anyone who thinks Salty can't hit....check that line out :O

  8. Richard Chester Says:

    @4, @5

    There were two games on Aug. 22. The Rangers won the first game by 30-3 and the second game by 9-7. The chart shows two narrow bars for that date indicating a double-header. The height for the first game isn't longer because all margins of victory greater than ten runs are equal in height to a ten run margin bar.

  9. Dcarson10 Says:

    I like how Texas scored those 30 runs in only 4 seperate innings.

  10. Team Schedule Sparklines » Stathead » Blog Archive Says:

    [...] Sean Forman introduces a new graphical addition to the site’s team pages. Link Posted on Monday, April 11th, 2011 at 5:33 pm, Category: Baseball, Tags: bref, cool-graphics, [...]

  11. DJ Says:

    This is excellent! I'm curious as to what was used to create these. A JavaScript library?

  12. Mac Says:

    As an A's fan, I very much approve of the example sparkline shown in the original post.

  13. Dave Says:

    This is a wonderful feature, and your site is unquestionably the standard--no one else comes close!

    One quibble though--the choice of red and green leaves millions of color-blind guys--like yours truly--somewhat out in the cold. I'd wager most of your users are men, as are almost all color-blind individuals,

  14. Gerry Says:

    I had a ticket for that 30-3 game, more accurately, a rain check for that game. But I was only in town for the originally scheduled day, so I missed the game.

  15. Sean Forman Says:

    DJ, it is pure CSS.

  16. Jon S C Says:

    @9 - even better than that, how there was a "Save" given in the game as well...

  17. Zach Says:

    I'm not really a fan of this, at least not where it is. The colours are kind of ugly and it's distracting when, for example, I'm looking for Eric Hinske's line in with the 2004 Blue Jays (in a giant page of black text) and there's a massive blotch of green and red lines above where my eyes want to look. It'd be a lot better it was tucked away somewhere (the schedule and results page would be perfect) or if there was a way to disable it.

    Basically, when I go to a team's yearly page, I'm not really interested in their season's results on a game-by-game basis, I'm looking to compare players. Because of that, I find that this is a rare distracting feature on a site that's been remarkably clean and well-designed since it launched.

    Sorry Sean.

  18. Doug Says:

    Great feature. A few little quibbles or suggestions.

    Tough to see the spacing between months - maybe an ultra-thin vertical hairline would be a better way to separate months.

    Like DavidRF @ 3, having GB in the mouse-over info would be a nice addition.

    Like Zach @ 17, I think the Schedule and Results page would be a better and more natural place to put this.