Skip to content

Instantly share code, notes, and snippets.

@timelyportfolio
Last active March 14, 2017 20:49
Show Gist options
  • Save timelyportfolio/928aa5dca58741d6559ce8ef54deea03 to your computer and use it in GitHub Desktop.
Save timelyportfolio/928aa5dca58741d6559ce8ef54deea03 to your computer and use it in GitHub Desktop.
NBA Game with R eventdropR htmlwidget
license: mit

Building off the eventdropR github commit example, let's now use some NBA basketball data to create an EventDrop interactive timeline. Note, the time is actual time and not game time. Each made shot is considered the same regardless of 1, 2, or 3 points.

Code

# example using NBA game data
# http://stats.nba.com/game/#!/0021600991/playbyplay/

library(jsonlite)
library(eventdropR)
library(pipeR)
library(dplyr)

plays <- "http://stats.nba.com/stats/playbyplayv2?EndPeriod=10&EndRange=55800&GameID=0021600991&RangeType=2&Season=2016-17&SeasonType=Regular+Season&StartPeriod=1&StartRange=0" %>>%
  readLines() %>>%
  paste0(collapse = "\n") %>>%
  fromJSON() %>>%
  {.$resultSets$rowSet[[1]]} %>>%
  {
    tibble(
      date = .[,6],
      score = .[,11],
      team = .[,18]
    )
  } 

plays %>>%
  # change date to proper format
  mutate(
    date = sprintf(
      "2017-03-14T0%s:%s",
      Map(function(x) as.numeric(x[1])-7,strsplit(plays$date,":")),
      Map(function(x) substr(x[2],1,2),strsplit(plays$date,":"))
    )
  ) %>>%
  # get only score changes
  filter(Negate(is.na)(score)) %>>%
  filter(Negate(is.na)(team)) %>>%
  eventdrop(
    name = "team"
  )
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script src="data:application/x-javascript;base64,Ly8gaHR0cHM6Ly9kM2pzLm9yZyBWZXJzaW9uIDQuNy4wLiBDb3B5cmlnaHQgMjAxNyBNaWtlIEJvc3RvY2suCihmdW5jdGlvbih0LG4peyJvYmplY3QiPT10eXBlb2YgZXhwb3J0cyYmInVuZGVmaW5lZCIhPXR5cGVvZiBtb2R1bGU/bihleHBvcnRzKToiZnVuY3Rpb24iPT10eXBlb2YgZGVmaW5lJiZkZWZpbmUuYW1kP2RlZmlu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FjaChtYXRjaGVzLCBmdW5jdGlvbihlbCkgew0KICAgICAgICB2YXIgc2l6ZU9iaiA9IGluaXRTaXppbmcoZWwsIGJpbmRpbmcpOw0KDQogICAgICAgIGlmIChoYXNDbGFzcyhlbCwgImh0bWwtd2lkZ2V0LXN0YXRpYy1ib3VuZCIpKQ0KICAgICAgICAgIHJldHVybjsNCiAgICAgICAgZWwuY2xhc3NOYW1lID0gZWwuY2xhc3NOYW1lICsgIiBodG1sLXdpZGdldC1zdGF0aWMtYm91bmQiOw0KDQogICAgICAgIHZhciBpbml0UmVzdWx0Ow0KICAgICAgICBpZiAoYmluZGluZy5pbml0aWFsaXplKSB7DQogICAgICAgICAgaW5pdFJlc3VsdCA9IGJpbmRpbmcuaW5pdGlhbGl6ZShlbCwNCiAgICAgICAgICAgIHNpemVPYmogPyBzaXplT2JqLmdldFdpZHRoKCkgOiBlbC5vZmZzZXRXaWR0aCwNCiAgICAgICAgICAgIHNpemVPYmogPyBzaXplT2JqLmdldEhlaWdodCgpIDogZWwub2Zmc2V0SGVpZ2h0DQogICAgICAgICAgKTsNCiAgICAgICAgICBlbGVtZW50RGF0YShlbCwgImluaXRfcmVzdWx0IiwgaW5pdFJlc3VsdCk7DQogICAgICAgIH0NCg0KICAgICAgICBpZiAoYmluZGluZy5yZXNpemUpIHsNCiAgICAgICAgICB2YXIgbGFzdFNpemUgPSB7fTsNCiAgICAgICAgICB2YXIgcmVzaXplSGFuZGxlciA9IGZ1bmN0aW9uKGUpIHsNCiAgICAgICAgICAgIHZhciBzaXplID0gew0KICAgICAgICAgICAgICB3OiBzaXplT2JqID8gc2l6ZU9iai5nZXRXaWR0aCgpIDogZWwub2Zmc2V0V2lkdGgsDQogICAgICAgICAgICAgIGg6IHNpemVPYmogPyBzaXplT2JqLmdldEhlaWdodCgpIDogZWwub2Zmc2V0SGVpZ2h0DQogICAgICAgICAgICB9Ow0KICAgICAgICAgICAgaWYgKHNpemUudyA9PT0gMCAmJiBzaXplLmggPT09IDApD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bmRlZmluZWQiKQ0KICAgICAga2V5ID0gMTsNCg0KICAgIHZhciBsaW5rID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoZGVwbmFtZSArICItIiArIGtleSArICItYXR0YWNobWVudCIpOw0KICAgIGlmICghbGluaykgew0KICAgICAgdGhyb3cgbmV3IEVycm9yKCJBdHRhY2htZW50ICIgKyBkZXBuYW1lICsgIi8iICsga2V5ICsgIiBub3QgZm91bmQgaW4gZG9jdW1lbnQiKTsNCiAgICB9DQogICAgcmV0dXJuIGxpbmsuZ2V0QXR0cmlidXRlKCJocmVmIik7DQogIH07DQoNCiAgd2luZG93LkhUTUxXaWRnZXRzLmRhdGFmcmFtZVRvRDMgPSBmdW5jdGlvbihkZikgew0KICAgIHZhciBuYW1lcyA9IFtdOw0KICAgIHZhciBsZW5ndGg7DQogICAgZm9yICh2YXIgbmFtZSBpbiBkZikgew0KICAgICAgICBpZiAoZGYuaGFzT3duUHJvcGVydHkobmFtZSkpDQogICAgICAgICAgICBuYW1lcy5wdXNoKG5hbWUpOw0KICAgICAgICBpZiAodHlwZW9mKGRmW25hbWVdKSAhPT0gIm9iamVjdCIgfHwgdHlwZW9mKGRmW25hbWVdLmxlbmd0aCkgPT09ICJ1bmRlZmluZWQiKSB7DQogICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoIkFsbCBmaWVsZHMgbXVzdCBiZSBhcnJheXMiKTsNCiAgICAgICAgfSBlbHNlIGlmICh0eXBlb2YobGVuZ3RoKSAhPT0gInVuZGVmaW5lZCIgJiYgbGVuZ3RoICE9PSBkZltuYW1lXS5sZW5ndGgpIHsNCiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigiQWxsIGZpZWxkcyBtdXN0IGJlIGFycmF5cyBvZiB0aGUgc2FtZSBsZW5ndGgiKTsNCiAgICAgICAgfQ0KICAgICAgICBsZW5ndGggPSBkZltuYW1lXS5sZW5ndGg7DQogICAgfQ0KICAgIHZhciByZXN1bHRzID0gW107DQogICAg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HJlbmRlclZhbHVlOiBmdW5jdGlvbihlbCwgeCwgaW5zdGFuY2UpIHsNCiAgICAgICAgcmV0dXJuIGluc3RhbmNlLnJlbmRlclZhbHVlKHgpOw0KICAgICAgfSwNCiAgICAgIHJlc2l6ZTogZnVuY3Rpb24oZWwsIHdpZHRoLCBoZWlnaHQsIGluc3RhbmNlKSB7DQogICAgICAgIHJldHVybiBpbnN0YW5jZS5yZXNpemUod2lkdGgsIGhlaWdodCk7DQogICAgICB9DQogICAgfTsNCg0KICAgIGlmIChkZWZuLmZpbmQpDQogICAgICByZXN1bHQuZmluZCA9IGRlZm4uZmluZDsNCiAgICBpZiAoZGVmbi5yZW5kZXJFcnJvcikNCiAgICAgIHJlc3VsdC5yZW5kZXJFcnJvciA9IGRlZm4ucmVuZGVyRXJyb3I7DQogICAgaWYgKGRlZm4uY2xlYXJFcnJvcikNCiAgICAgIHJlc3VsdC5jbGVhckVycm9yID0gZGVmbi5jbGVhckVycm9yOw0KDQogICAgcmV0dXJuIHJlc3VsdDsNCiAgfQ0KfSkoKTsNCg0K"></script>
<link href="data:text/css;charset=utf-8,%2Ezoom%2Darea%7Bfill%3Atransparent%3Bcursor%3Apointer%7D%2Eline%2Dseparator%2C%2Ex%2Daxis%2C%2Ey%2Dtick%7Bstroke%3A%23000%3Bfill%3Anone%3Bstroke%2Dwidth%3A1px%7D%2Eline%2Dseparator%3Alast%2Dchild%7Bdisplay%3Anone%7D%2Ex%2Daxis%7Bposition%3Aabsolute%3Bz%2Dindex%3A50%7Dtext%7Bstroke%3Anone%3Bfill%3A%23000%7D%2Egraph%2Dbody%20%2Eline%7Bheight%3A20px%3Bpadding%3A10px%7D%0A" rel="stylesheet" />
<script src="data:application/x-javascript;base64,IWZ1bmN0aW9uKHQsbil7Im9iamVjdCI9PXR5cGVvZiBleHBvcnRzJiYib2JqZWN0Ij09dHlwZW9mIG1vZHVsZT9tb2R1bGUuZXhwb3J0cz1uKCk6ImZ1bmN0aW9uIj09dHlwZW9mIG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citpKmktbypvLXUqdS1hKmErYypjLF89Miooci1zKSxnPTIqKGktbCkseT0yKihmLW8pLG09cipyK2kqaS1vKm8tcypzLWwqbCtmKmYseD1fKnAtaCpnLGI9KHAqbS1nKnYpL3gtcix3PShnKmQtcCp5KS94LE09KF8qdi1oKm0pL3gtaSxUPShoKnktXypkKS94LGs9dyp3K1QqVC0xLFM9MiooYip3K00qVCtvKSxBPWIqYitNKk0tbypvLE49KC1TLU1hdGguc3FydChTKlMtNCprKkEpKS8oMiprKTtyZXR1cm57eDpiK3cqTityLHk6TStUKk4raSxyOk59fWZ1bmN0aW9uIGpvKHQsbixlKXt2YXIgcj10LngsaT10Lnksbz1uLnIrZS5yLHU9dC5yK2UucixhPW4ueC1yLGM9bi55LWkscz1hKmErYypjO2lmKHMpe3ZhciBsPS41KygodSo9dSktKG8qPW8pKS8oMipzKSxmPU1hdGguc3FydChNYXRoLm1heCgwLDIqbyoodStzKS0odS09cykqdS1vKm8pKS8oMipzKTtlLng9citsKmErZipjLGUueT1pK2wqYy1mKmF9ZWxzZSBlLng9cit1LGUueT1pfWZ1bmN0aW9uIFlvKHQsbil7dmFyIGU9bi54LXQueCxyPW4ueS10LnksaT10LnIrbi5yO3JldHVybiBpKmktMWUtNj5lKmUrcipyfWZ1bmN0aW9uIEJvKHQsbixlKXt2YXIgcj10Ll8saT10Lm5leHQuXyxvPXIucitpLnIsdT0oci54KmkucitpLngqci5yKS9vLW4sYT0oci55KmkucitpLnkqci5yKS9vLWU7cmV0dXJuIHUqdSthKmF9ZnVuY3Rpb24gSG8odCl7dGhpcy5fPXQsdGhpcy5uZXh0PW51bGwsdGhpcy5wcmV2aW91cz1udWxsfWZ1bmN0aW9uIFhvKHQpe2lmKCEoaT10Lmxlbmd0aCkpcmV0dXJuIDA7dmFyIG4sZSxyLGk7aWYobj10WzBdLG4ueD0wLG4ueT0wLCEoaT4xKSlyZXR1cm4gbi5yO2lmKGU9dFsxXSxuLng9LWUucixlLng9bi5yLGUueT0wLC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HguZGF0YVt4LmRhdGUgfHwgImRhdGUiXSk7DQoNCiAgICAgICAgICAvLyBhc3N1bWUgZGF0YSBmcm9tIFIgZGF0YS5mcmFtZQ0KICAgICAgICAgIHZhciBkZiA9IEhUTUxXaWRnZXRzLmRhdGFmcmFtZVRvRDMoeC5kYXRhKTsNCiAgICAgICAgICBkZiA9IGQzLm5lc3QoKQ0KICAgICAgICAgICAgLmtleShmdW5jdGlvbihkKXsNCiAgICAgICAgICAgICAgcmV0dXJuIGRbeC5uYW1lIHx8ICJuYW1lIl0NCiAgICAgICAgICAgIH0pDQogICAgICAgICAgICAuZW50cmllcyhkZikNCiAgICAgICAgICAgIC5tYXAoZnVuY3Rpb24oZCl7DQogICAgICAgICAgICAgIC8vIHJlbmFtZSB0byBuYW1lIGFuZCBkYXRhIHdoaWNoIGFyZSB0aGUgZGVmYXVsdHMNCiAgICAgICAgICAgICAgLy8gIGZvciBFdmVudERyb3BzDQogICAgICAgICAgICAgIGQubmFtZSA9IGQua2V5Ow0KICAgICAgICAgICAgICBkLmRhdGEgPSBkLnZhbHVlczsNCiAgICAgICAgICAgICAgLy8gZGVsZXRlIHRoZXNlIHByb3BlcnRpZXMgc2luY2Ugd2UgcmVuYW1lZA0KICAgICAgICAgICAgICAvLyAgIHByb2JhYmx5IGJldHRlciB3YXkgdG8gaGFuZGxlDQogICAgICAgICAgICAgIGRlbGV0ZShkLmtleSk7DQogICAgICAgICAgICAgIGRlbGV0ZShkLnZhbHVlcyk7DQogICAgICAgICAgICAgIHJldHVybiBkOw0KICAgICAgICAgICAgfSk7DQoNCiAgICAgICAgICB2YXIgY29sb3IgPSBkMy5zY2FsZU9yZGluYWwoZDMuc2NoZW1lQ2F0ZWdvcnkyMCk7DQoNCiAgICAgICAgICAvLyBjcmVhdGUgY2hhcnQgZnVuY3Rpb24NCiAgICAgICAgICB2YXIgZXZlbnREcm9wc0NoYXJ0ID0gZXZlbnREcm9wcy5kZWZhdWx0KCk7DQoNCiAgICAgICAgICAvLyBzZXQgZGVmYXVsdHMgd2hpY2ggd2UgY2FuIG92ZXJyaWRlIGxhdGVyDQogICAgICAgICAgLy8gICBieSB4Lm9wdGlvbnMNCiAgICAgICAgICBldmVudERyb3BzQ2hhcnQNCiAgICAgICAgICAgIC8vLndpZHRoKHdpZHRoKQ0KICAgICAgICAgICAgLy8gbWFyZ2luIGRvbid0IGJlaGF2ZSB0aGUgd2F5IEkgZXhwZWN0DQogICAgICAgICAgICAvLy5tYXJnaW4oe3RvcDogNDAsIGJvdHRvbTogMjAsIGxlZnQ6IDc1LCByaWdodDogNTB9KQ0KICAgICAgICAgICAgLmxhYmVsc1dpZHRoKDEwMCkNCiAgICAgICAgICAgIC5ldmVudExpbmVDb2xvcihmdW5jdGlvbiAoZGF0dW0sIGluZGV4KSB7DQogICAgICAgICAgICAgICAgcmV0dXJuIGNvbG9yKGluZGV4KTsNCiAgICAgICAgICAgIH0pDQogICAgICAgICAgICAuc3RhcnQobmV3IERhdGUoc3RhcnRUaW1lKSkNCiAgICAgICAgICAgIC5lbmQobmV3IERhdGUoZW5kVGltZSkpDQogICAgICAgICAgICAuZGF0ZShmdW5jdGlvbihkKXsNCiAgICAgICAgICAgICAgcmV0dXJuIG5ldyBEYXRlKGRbeC5kYXRlIHx8ICdkYXRlJ10pOw0KICAgICAgICAgICAgfSk7DQoNCiAgICAgICAgICAvLyBsb29wIHRocm91Z2ggeC5vcHRpb25zIGFuZCB0cnkgdG8gYXBwbHkgdGhlbQ0KICAgICAgICAgIC8vICAgdG8gb3VyIGV2ZW50RHJvcHNDaGFydA0KICAgICAgICAgIE9iamVjdC5rZXlzKHgub3B0aW9ucykNCiAgICAgICAgICAgIC5mb3JFYWNoKGZ1bmN0aW9uKGt5KXsNCiAgICAgICAgICAgICAgdHJ5ew0KICAgICAgICAgICAgICAgIGV2ZW50RHJvcHNDaGFydFtreV0oeC5vcHRpb25zW2t5XSk7DQogICAgICAgICAgICAgIH0gY2F0Y2goZSkgeyB9DQogICAgICAgICAgICB9KQ0KDQogICAgICAgICAgLy8gYmluZCBkYXRhIHdpdGggRE9NDQogICAgICAgICAgZWwuZGF0dW0oZGYpOw0KDQogICAgICAgICAgLy8gZHJhdyB0aGUgY2hhcnQNCiAgICAgICAgICBldmVudERyb3BzQ2hhcnQoZWwpOw0KDQogICAgICAgICAgLy8gYWRkIGV2ZW50RHJvcHMgdG8gaW5zdGFuY2UNCiAgICAgICAgICBpbnN0YW5jZS5ldmVudGRyb3AgPSBldmVudERyb3BzQ2hhcnQ7DQoNCiAgICAgIH0sDQoNCiAgICAgIHJlbmRlclZhbHVlOiBmdW5jdGlvbih4KSB7DQoNCiAgICAgICAgLy8gYWRkIG91ciB4IChkYXRhKSB0byBpbnN0YW5jZQ0KICAgICAgICBpbnN0YW5jZS54ID0geDsNCg0KICAgICAgICB0aGlzLmRyYXdFdmVudERyb3AoZWwsIGluc3RhbmNlKTsNCg0KICAgICAgfSwNCg0KICAgICAgcmVzaXplOiBmdW5jdGlvbih3aWR0aCwgaGVpZ2h0KSB7DQogICAgICAgIC8vIHVzZSBwdWxsIHJlcXVlc3QgODINCiAgICAgICAgLy8gIGZvciByZXNpemUgd2hlbiByZWFkeQ0KICAgICAgICAvLyAgaHR0cHM6Ly9naXRodWIuY29tL21hcm1lbGFiL0V2ZW50RHJvcHMvcHVsbC84Mg0KICAgICAgICB0aGlzLmRyYXdFdmVudERyb3AoZWwsIGluc3RhbmNlKTsNCg0KICAgICAgfSwNCg0KICAgICAgaW5zdGFuY2U6IGluc3RhbmNlDQoNCiAgICB9Ow0KICB9DQp9KTsNCg=="></script>
</head>
<body style="background-color:white;">
<div id="htmlwidget_container">
<div id="htmlwidget-4553bf99556f469456af" class="eventdrop html-widget" style="width:960px;height:500px;" width="960" height="500">
</div>
</div>
<script type="application/json" data-for="htmlwidget-4553bf99556f469456af">{"x":{"data":{"date":["2017-03-14T00:12","2017-03-14T00:12","2017-03-14T00:12","2017-03-14T00:14","2017-03-14T00:14","2017-03-14T00:15","2017-03-14T00:15","2017-03-14T00:16","2017-03-14T00:16","2017-03-14T00:18","2017-03-14T00:18","2017-03-14T00:19","2017-03-14T00:19","2017-03-14T00:19","2017-03-14T00:19","2017-03-14T00:20","2017-03-14T00:20","2017-03-14T00:23","2017-03-14T00:25","2017-03-14T00:26","2017-03-14T00:29","2017-03-14T00:30","2017-03-14T00:31","2017-03-14T00:32","2017-03-14T00:32","2017-03-14T00:33","2017-03-14T00:33","2017-03-14T00:34","2017-03-14T00:37","2017-03-14T00:37","2017-03-14T00:39","2017-03-14T00:39","2017-03-14T00:40","2017-03-14T00:40","2017-03-14T00:43","2017-03-14T00:44","2017-03-14T00:45","2017-03-14T00:45","2017-03-14T00:46","2017-03-14T00:49","2017-03-14T00:49","2017-03-14T00:52","2017-03-14T00:53","2017-03-14T00:56","2017-03-14T00:56","2017-03-14T00:57","2017-03-14T01:00","2017-03-14T01:02","2017-03-14T01:02","2017-03-14T01:02","2017-03-14T01:04","2017-03-14T01:04","2017-03-14T01:21","2017-03-14T01:22","2017-03-14T01:22","2017-03-14T01:22","2017-03-14T01:23","2017-03-14T01:24","2017-03-14T01:27","2017-03-14T01:28","2017-03-14T01:28","2017-03-14T01:29","2017-03-14T01:29","2017-03-14T01:30","2017-03-14T01:30","2017-03-14T01:31","2017-03-14T01:31","2017-03-14T01:32","2017-03-14T01:33","2017-03-14T01:34","2017-03-14T01:34","2017-03-14T01:35","2017-03-14T01:37","2017-03-14T01:37","2017-03-14T01:40","2017-03-14T01:41","2017-03-14T01:41","2017-03-14T01:42","2017-03-14T01:42","2017-03-14T01:43","2017-03-14T01:43","2017-03-14T01:44","2017-03-14T01:44","2017-03-14T01:45","2017-03-14T01:46","2017-03-14T01:46","2017-03-14T01:46","2017-03-14T01:47","2017-03-14T01:50","2017-03-14T01:51","2017-03-14T01:52","2017-03-14T01:53","2017-03-14T01:56","2017-03-14T01:56","2017-03-14T01:57","2017-03-14T01:58","2017-03-14T02:02","2017-03-14T02:02","2017-03-14T02:03","2017-03-14T02:04","2017-03-14T02:04","2017-03-14T02:04","2017-03-14T02:07","2017-03-14T02:08","2017-03-14T02:09","2017-03-14T02:09","2017-03-14T02:11","2017-03-14T02:13","2017-03-14T02:14","2017-03-14T02:14","2017-03-14T02:15","2017-03-14T02:15","2017-03-14T02:18","2017-03-14T02:20","2017-03-14T02:20","2017-03-14T02:21","2017-03-14T02:22","2017-03-14T02:24","2017-03-14T02:25"],"score":["0 - 3","3 - 3","5 - 3","5 - 5","5 - 6","5 - 8","7 - 8","7 - 10","9 - 10","12 - 10","14 - 10","14 - 13","17 - 13","17 - 15","20 - 15","20 - 17","20 - 19","20 - 21","20 - 22","20 - 23","21 - 23","22 - 23","24 - 23","24 - 24","27 - 24","30 - 24","33 - 24","36 - 24","36 - 26","38 - 26","38 - 27","41 - 27","41 - 29","44 - 29","44 - 30","44 - 31","44 - 33","45 - 33","45 - 35","45 - 36","45 - 38","48 - 38","48 - 40","49 - 40","50 - 40","52 - 40","54 - 40","56 - 40","56 - 42","56 - 45","58 - 45","58 - 48","58 - 50","60 - 50","60 - 52","60 - 54","60 - 55","60 - 57","60 - 59","61 - 59","62 - 59","62 - 60","62 - 61","64 - 61","65 - 61","66 - 61","66 - 63","66 - 65","69 - 65","69 - 66","69 - 67","69 - 69","71 - 69","73 - 69","73 - 71","75 - 71","76 - 71","77 - 71","77 - 73","79 - 73","80 - 73","80 - 74","80 - 75","82 - 75","84 - 75","85 - 75","87 - 75","87 - 77","87 - 79","89 - 79","91 - 79","91 - 81","93 - 81","93 - 83","93 - 85","93 - 88","95 - 88","95 - 90","95 - 91","97 - 91","97 - 94","100 - 94","100 - 96","102 - 96","105 - 96","105 - 98","107 - 98","107 - 101","108 - 101","108 - 103","110 - 103","110 - 105","110 - 107","111 - 107","112 - 107","112 - 109","113 - 109","114 - 109","115 - 109"],"team":["Hornets","Bulls","Bulls","Hornets","Hornets","Hornets","Bulls","Hornets","Bulls","Bulls","Bulls","Hornets","Bulls","Hornets","Bulls","Hornets","Hornets","Hornets","Hornets","Hornets","Bulls","Bulls","Bulls","Hornets","Bulls","Bulls","Bulls","Bulls","Hornets","Bulls","Hornets","Bulls","Hornets","Bulls","Hornets","Hornets","Hornets","Bulls","Hornets","Hornets","Hornets","Bulls","Hornets","Bulls","Bulls","Bulls","Bulls","Bulls","Hornets","Hornets","Bulls","Hornets","Hornets","Bulls","Hornets","Hornets","Hornets","Hornets","Hornets","Bulls","Bulls","Hornets","Hornets","Bulls","Bulls","Bulls","Hornets","Hornets","Bulls","Hornets","Hornets","Hornets","Bulls","Bulls","Hornets","Bulls","Bulls","Bulls","Hornets","Bulls","Bulls","Hornets","Hornets","Bulls","Bulls","Bulls","Bulls","Hornets","Hornets","Bulls","Bulls","Hornets","Bulls","Hornets","Hornets","Hornets","Bulls","Hornets","Hornets","Bulls","Hornets","Bulls","Hornets","Bulls","Bulls","Hornets","Bulls","Hornets","Bulls","Hornets","Bulls","Hornets","Hornets","Bulls","Bulls","Hornets","Bulls","Bulls","Bulls"]},"name":"team","date":null,"options":[]},"evals":[],"jsHooks":[]}</script>
<script type="application/htmlwidget-sizing" data-for="htmlwidget-4553bf99556f469456af">{"viewer":{"width":450,"height":350,"padding":15,"fill":true},"browser":{"width":960,"height":500,"padding":40,"fill":false}}</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment