Updated Player Shot Charts: 2011-2012 Season Reports, Export to Image, and More

I’ve made a bunch of new updates to the player shot chart pages, aimed at improving page load speed and general usefulness to all of you.

Player Shot Chart Reports by Season

The first improvement is the introduction of player shot charts for the entire 2010-2011 and 2011-2012 seasons.  For the 2011-2012 season, I have broken out individual shot charts for the preseason, regular season, and postseason.  So you now have a holistic view of a player’s shot distribution over the course of an entire season.

The default view shows a player’s shot chart from the prior 30 days.  Given that it’s currently the offseason, this would show shots from the 30 days prior to the end of the NBA postseason, but during the season, it would be updated every day.

Exportable Shot Charts

The next improvement allows you to export shot chart visualizations to your desktop, either in SVG format or PNG format.  This will allow you to save any interesting findings you may have discovered, and share that visualization on your own blog, on a forum, or whatever medium you choose.  Obviously, I’d prefer you give attribution back to vorped.com.

You have two choices in export format: SVG and PNG.  SVG, or scalable vector graphics, is the preferred option because of its ability to maintain clarity when the image is expanded or contracted.  But SVG has its downsides, since not all programs can render it properly (it’s technically an XML file).

Your second choice, PNG, is your conventional pixel-based image option.  I do want to caution that the library I’m using to convert the shot chart visualization (which is created via SVG) into PNG is a little wonky.  It looks really crappy in Google Chrome, a little better in Firefox, and pretty good in Safari.  Your mileage may vary, depending on your browser.

Social sharing

Another way you can distribute your shot charts is through social media.  I’ve included three buttons below the shot chart, for the three major social networks (Facebook, Twitter, and Google Plus).

Updated styling for the major browsers

Finally, I made some visual styling changes across the site.  I have to apologize to those using Firefox and Internet Explorer, because I have absolutely ignored those browsers during my development (I use Google Chrome).  Regardless of your browser, you should see more consistent styling and colors across the site.

One more note to users with Internet Explorer 8 or below: unfortunately this site is completely dependent on the SVG format, which can only be used on Internet Explorer browsers of version 9 or above.  I understand that not everyone has a computer or phone that can install those versions, but if you have the ability to upgrade to a modern browser, please do it!  Luckily we have choices when it comes to browsers.

If you happen to find any bugs, have any suggestions, or want to otherwise contact me, please let me know at my Twitter page @vorped.

Leave a Reply