diff --git a/README.md b/README.md index b71d3c6..e77a39e 100644 --- a/README.md +++ b/README.md @@ -1 +1,37 @@ -# baseball-data \ No newline at end of file +# Summary +A CSV dataset of baseball players and their characteristics and statistics was parsed and an interactive data visualization was created using common web development languages (HTML5, CSS3, JavasScript) and the D3 library. The focus of this visualization was handedness of the player on batting average and amount of home runs hit (HRs). +# Data Cleaning +We cleaned the original dataset of 1157 baseball players (stored in *baseball_data.csv*) by removing any players that did not score a homerun or have a batting average. To expedite the cleaning process, these players were removed directly with Excel. This new dataset contains 871 players and is stored in *baseball_data2.csv*. +# Explanatory Outcomes +While the user can interact with the visualization, there are two key takeaways that we wanted to clearly illustrate through the bar charts: +- On average, left-handed players have slightly better batting average than right-handed and ambidextrous players (0.253 vs 0.240 and 0.244 respectively). +- On average, left-handed players hit more HRs than right-handed and ambidextrous players (69.9 vs 58.8 and 40.3 respectively). + +To help quantify this difference, we used a two-sample independent t-test. At a 90% confidence level, all of these performance differences are statistically significant. More statistical details can be found in the *baseball_data.xlsx* file. +# Design +## Visual Encoding +The most important fields, the two performance indicators (batting avg and home runs hit), are encoded by x position and y position respectively. Since handedness is the variable that we wish to show a difference in, we encoded this through color for easy comparison. Additionally, we made this variable interactive by allowing the user to sort the data by handedness through interacting with the buttons on the right side. Clicking on these buttons highlights visual elements that pertain to that hand type. +## Scatter Plot +We decided to use a large scatter plot to allow the user to see trends in the data and interact with it to find their own data story. The data points on the scatter plot allow for additional user interaction by displaying the player’s information in a statistics-like tooltip upon hovering and clicking. +## Bar Charts +After some feedback, we also added a ‘summary statistics’ portion for quick explanatory visualization while retaining exploratory functionality with the whole dataset. Bar charts were used to allow quick comparison. The visual encoding of handedness is color to be consistent with the scatter plot. No axes were used as bar width and values in the bars were sufficient to encode the data and the colors were sufficient to encode the handedness. +# Feedback +The visualization was updated based on collected feedback. Version 1.0 represents the visualization before the feedback and Version 2.0 represents the visualization after the feedback. + +Please note, only Version 2.0 can be seen in the browser via the link: https://dominickhacnguyen.github.io/baseball-data/. Version 1.0 can be viewed by downloading it separately and viewing it locally. + +Below is the feedback that was collected: +- Brother noticed that there were two circles that would show up green (left handed) even though the red (right handed) button was selected. Refer to *Version1.0_Issue.jpg*. +> - To resolve this, we went back to the csv file and found out that there were duplicates in the name field. +> - Initially, we had assumed that the ‘name’ field was unique and bound the filtered data to the data circles with the name field in the ‘key’ function. However, upon further analysis of the data in Excel, we found two data points that had the same name to another data point. +> - Thus, to rectify this, we added an ‘id’ field and put a unique value for each record. +- Mother mentioned the selected toggle button for handedness should be emphasized when the data is changed. +> - Therefore, we highlighted the selected button by increasing its opacity and fading the unselected buttons. +- Father noted that while the visualization was brilliant and clean, it was difficult to determine relationships by showing the whole dataset. +> - Taking this feedback, we added a ‘summary statistics’ segment to compare player characteristics on performance statistics. +# Resources +- https://stackoverflow.com/questions/1248081/get-the-browser-viewport-dimensions-with-javascript +- http://bl.ocks.org/d3noob/5d621a60e2d1d02086bf +- http://bl.ocks.org/weiglemc/6185069 +- https://bl.ocks.org/mbostock/7322386 +- https://www.medcalc.org/calc/comparison_of_means.php diff --git a/Version1.0_Issue.JPG b/Version1.0_Issue.JPG new file mode 100644 index 0000000..6dc4230 Binary files /dev/null and b/Version1.0_Issue.JPG differ diff --git a/baseball_data.csv b/baseball_data.csv new file mode 100644 index 0000000..646aecc --- /dev/null +++ b/baseball_data.csv @@ -0,0 +1,872 @@ +name,handedness,height,weight,avg,HR +Jerry Reuss,L,77,200,0.167,1 +Ray Burris,R,77,200,0.151,1 +Dick Ruthven,R,75,190,0.183,1 +Jose Arcia,R,75,170,0.215,1 +Jim Barr,R,75,205,0.162,1 +Gary Nolan,R,74,197,0.138,1 +Bob Randall,R,74,175,0.257,1 +Woody Woodward,R,74,180,0.236,1 +Don Wilson,R,74,195,0.146,1 +Joe Niekro,R,73,185,0.156,1 +Denny McLain,R,73,185,0.133,1 +Bruce Miller,R,73,185,0.246,1 +Duane Kuiper,L,72,175,0.271,1 +Steve Blass,R,72,165,0.172,1 +Bob Heise,R,72,175,0.247,1 +Ray Culp,R,72,200,0.123,1 +Mario Soto,R,72,174,0.132,1 +Darrell Brown,B,72,184,0.274,1 +Joe Strain,R,70,169,0.25,1 +Brock Davis,L,70,160,0.26,1 +Pepe Frias,R,70,159,0.24,1 +Gil Garrido,R,69,150,0.237,1 +Sam McDowell,L,77,190,0.154,2 +Danny Ainge,R,76,175,0.22,2 +Woodie Fryman,R,75,197,0.138,2 +Jerry Koosman,R,74,205,0.119,2 +Ken Holtzman,R,74,175,0.163,2 +Mike Ramsey,B,73,170,0.24,2 +Barry Evans,R,73,180,0.251,2 +Fritz Peterson,B,72,185,0.159,2 +Angel Salazar,R,72,180,0.212,2 +Mike Champion,R,72,185,0.229,2 +Frank Taveras,R,72,155,0.255,2 +Glenn Burke,R,72,195,0.237,2 +Chico Ruiz,B,72,169,0.24,2 +Al Downing,R,71,175,0.127,2 +Jose Tartabull,L,71,165,0.261,2 +Tom Lawless,R,71,170,0.207,2 +Mike Edwards,R,70,154,0.25,2 +Nate Oliver,R,70,160,0.226,2 +Jack Perconte,L,70,160,0.27,2 +Rick Peters,B,69,170,0.277,2 +Rudy Meoli,L,69,165,0.212,2 +Enzo Hernandez,R,68,155,0.224,2 +Ron Theobald,R,68,165,0.248,2 +Jim Lonborg,R,77,200,0.136,3 +Dave Skaggs,R,74,200,0.241,3 +Jerry Zimmerman,R,74,185,0.204,3 +Jerry Dybzinski,R,74,180,0.234,3 +Mike Fischlin,R,73,165,0.22,3 +Joe Nossek,R,72,178,0.228,3 +Rodney Scott,B,72,160,0.236,3 +Mark Wagner,R,72,165,0.243,3 +Rob Andrews,R,72,185,0.251,3 +Don Mason,L,71,160,0.205,3 +Skip Jutze,R,71,190,0.215,3 +Bobby Mitchell,L,70,170,0.243,3 +Bryan Little,B,70,160,0.245,3 +Winston Llenas,R,70,165,0.23,3 +Manny Castillo,B,69,160,0.242,3 +Ron Brand,R,67,167,0.239,3 +Onix Concepcion,R,66,160,0.239,3 +Larry Dierker,R,76,215,0.136,4 +Terry Harmon,R,74,180,0.233,4 +Denny Lemaster,R,73,182,0.13,4 +Burt Hooton,R,73,210,0.123,4 +Tom Matchick,L,73,173,0.215,4 +Tommy Dean,R,72,165,0.18,4 +Joe Lovitto,B,72,185,0.216,4 +Mike Richardt,R,72,170,0.226,4 +Pat Corrales,R,72,180,0.216,4 +Juan Marichal,R,72,185,0.165,4 +Vida Blue,B,72,189,0.104,4 +Ron Gardenhire,R,72,175,0.232,4 +Mario Mendoza,R,71,170,0.215,4 +John Donaldson,L,71,160,0.238,4 +Julio Gonzalez,R,71,162,0.235,4 +Jackie Gutierrez,R,71,175,0.237,4 +Junior Kennedy,R,71,175,0.248,4 +Jerry Terrell,R,71,165,0.253,4 +Rafael Landestoy,B,70,165,0.237,4 +Elio Chacon,R,69,160,0.232,4 +Mike Krukow,R,77,205,0.193,5 +Scot Thompson,L,75,195,0.262,5 +Tommy John,R,75,180,0.157,5 +Alan Wiggins,B,74,160,0.259,5 +Andy Messersmith,R,73,200,0.17,5 +Tom Nieto,R,73,193,0.205,5 +Frank Quilici,R,73,170,0.214,5 +Roger Metzger,B,72,165,0.231,5 +Lenny Faedo,R,72,170,0.251,5 +Wallace Johnson,B,72,173,0.255,5 +Joaquin Andujar,B,72,170,0.127,5 +Steve Barber,L,72,195,0.115,5 +Luis Tiant,R,72,180,0.164,5 +Steve Jeltz,B,71,180,0.21,5 +Albert Hall,B,71,155,0.251,5 +Ray Sadecki,L,71,180,0.191,5 +Andre Robertson,R,70,155,0.251,5 +Ron Clark,R,70,175,0.189,5 +Mike Brumley,L,70,195,0.229,5 +Gene Clines,R,69,170,0.277,5 +Mike Sadek,R,69,165,0.226,5 +Luis Alvarado,R,69,162,0.214,5 +Ken Suarez,R,69,175,0.227,5 +Jim French,L,68,180,0.196,5 +Steve Renko,R,77,230,0.215,6 +Gaylord Perry,R,76,205,0.131,6 +Terry Humphrey,R,75,185,0.211,6 +Bob Knepper,L,75,195,0.137,6 +Ron Stone,L,74,185,0.241,6 +Luis Pujols,R,74,175,0.193,6 +Wilbur Howard,B,74,170,0.25,6 +Rod Kanehl,R,73,180,0.241,6 +Rick Sweet,B,73,200,0.234,6 +John Vukovich,R,73,187,0.161,6 +Tucker Ashford,R,73,195,0.218,6 +Ken Rudolph,R,73,180,0.213,6 +Brad Wellman,R,72,170,0.231,6 +Bob Davis,R,72,180,0.197,6 +Miguel Dilone,B,72,160,0.265,6 +Ty Cline,L,72,170,0.238,6 +Julio Gotay,R,72,180,0.26,6 +Catfish Hunter,R,72,190,0.226,6 +Hank Allen,R,72,190,0.241,6 +Frank Tepedino,L,71,185,0.241,6 +Dal Maxvill,R,71,157,0.217,6 +Rich Morales,R,71,170,0.195,6 +Rich Chiles,L,71,170,0.254,6 +Dave Hilton,R,71,191,0.213,6 +Buddy Biancalana,B,71,160,0.205,6 +Tim Blackwell,B,71,170,0.228,6 +Mike Squires,L,71,185,0.26,6 +Bobby Klaus,R,70,170,0.208,6 +Dave Roberts,L,75,195,0.194,7 +Tony Muser,L,74,180,0.259,7 +Jim Maloney,L,74,190,0.201,7 +Mel Stottlemyre,R,73,178,0.16,7 +Don Hahn,R,73,180,0.236,7 +Jerry Kenney,L,73,170,0.237,7 +Phil Niekro,R,73,180,0.169,7 +Marv Breeding,R,72,175,0.25,7 +Bill Fahey,L,72,200,0.241,7 +Ted Martinez,R,72,165,0.24,7 +Stan Papi,R,72,170,0.218,7 +Carl Morton,R,72,200,0.156,7 +Orlando Mercado,R,72,180,0.199,7 +Doug Griffin,R,72,160,0.245,7 +Al Weis,B,72,160,0.219,7 +Jim Rooker,R,72,195,0.201,7 +Junior Moore,R,71,185,0.264,7 +Doug Flynn,R,71,165,0.238,7 +Bud Harrelson,B,71,160,0.236,7 +Jim Fairey,L,70,190,0.235,7 +Greg Gross,L,70,160,0.287,7 +Jim Norris,L,70,175,0.264,7 +Mario Guerrero,R,70,155,0.257,7 +Curt Ford,L,70,150,0.245,7 +Juan Bonilla,R,69,170,0.256,7 +Sonny Jackson,L,69,150,0.251,7 +Lynn Jones,R,69,175,0.252,7 +Jerry Remy,L,69,165,0.275,7 +Sandy Valdespino,L,68,170,0.23,7 +Hal Lanier,R,74,180,0.228,8 +Bob Meacham,B,73,175,0.236,8 +Russ Gibson,R,73,195,0.228,8 +Pedro Gonzalez,R,72,176,0.244,8 +Sal Butera,R,72,190,0.227,8 +Jimmy Stewart,B,72,165,0.237,8 +Phil Mankowski,L,72,180,0.264,8 +Jeff Torborg,R,72,195,0.214,8 +Dick Tracewski,R,71,160,0.213,8 +Merritt Ranew,L,71,170,0.247,8 +Ed Romero,R,71,160,0.247,8 +Domingo Ramos,R,70,154,0.24,8 +Steve Hovley,L,70,188,0.258,8 +Broderick Perkins,L,70,180,0.271,8 +Boots Day,L,69,160,0.256,8 +Rick Rhoden,R,75,195,0.238,9 +Joe Simpson,L,75,175,0.242,9 +Tim Cullen,R,73,185,0.22,9 +Rick Sofield,L,73,195,0.243,9 +Jim Lyttle,L,72,180,0.248,9 +Jack Heidemann,R,72,175,0.211,9 +Joe Keough,L,72,185,0.246,9 +Rick Auerbach,R,72,165,0.22,9 +Bob Barton,R,72,175,0.226,9 +Luis Melendez,R,72,165,0.248,9 +Bobby Cox,R,71,180,0.225,9 +Tim Flannery,L,71,175,0.255,9 +Bob Bailor,R,71,170,0.264,9 +Dave McNally,R,71,185,0.133,9 +Gene Locklear,L,70,165,0.274,9 +Jim Pankovits,R,70,170,0.25,9 +George Smith,R,70,170,0.205,9 +Bill Sharp,L,70,178,0.255,9 +Wayne Tolleson,B,69,160,0.241,9 +J.R. Richard,R,80,222,0.168,10 +Ted Cox,R,75,195,0.245,10 +Bruce Boisclair,L,74,185,0.263,10 +Carl Taylor,R,74,200,0.266,10 +Paul Dade,R,73,185,0.27,10 +Brian Giles,R,73,165,0.228,10 +Dick Bertell,R,72,200,0.25,10 +Ron Davis,R,72,175,0.233,10 +Dave Rosello,R,71,160,0.236,10 +Bombo Rivera,R,70,187,0.265,10 +Fred Stanley,R,70,165,0.216,10 +Tom Poquette,L,70,175,0.268,10 +Howie Goss,R,76,204,0.216,11 +Ken Walters,R,73,180,0.231,11 +Phil Linz,R,73,180,0.235,11 +Jeff Stone,L,72,175,0.277,11 +Mike Phillips,L,72,170,0.24,11 +Rufino Linares,R,72,170,0.27,11 +Al Gallagher,R,72,180,0.263,11 +Tony Cloninger,R,72,210,0.192,11 +Larry Milbourne,B,72,161,0.254,11 +Barbaro Garbey,R,70,170,0.267,11 +Steve Nicosia,R,70,185,0.248,11 +Jimmie Schaffer,R,69,170,0.223,11 +Bob Forsch,R,76,200,0.213,12 +Sonny Siebert,R,75,190,0.173,12 +Tommie Reynolds,R,74,190,0.226,12 +Larry Haney,R,74,195,0.215,12 +Jim Mason,L,74,185,0.203,12 +Larry Harlow,L,74,185,0.248,12 +Tom Seaver,R,73,195,0.154,12 +Brian Asselstine,L,73,175,0.254,12 +Garry Hancock,L,72,175,0.247,12 +Ron Pruitt,R,72,185,0.269,12 +Dick Phillips,L,72,180,0.229,12 +Dan Briggs,L,72,180,0.195,12 +Alan Knicely,R,72,190,0.213,12 +Doug Clemens,L,72,180,0.229,12 +Jackie Hernandez,R,71,165,0.208,12 +Tim Corcoran,L,71,175,0.27,12 +Kiko Garcia,R,71,180,0.239,12 +John Stephenson,L,71,180,0.216,12 +Larry Cox,R,70,178,0.221,12 +Bobby Valentine,R,70,189,0.26,12 +Rich Coggins,L,68,170,0.265,12 +Fergie Jenkins,R,77,205,0.165,13 +Steve Carlton,L,76,210,0.201,13 +Tommie Aaron,R,75,190,0.229,13 +Gary Woods,R,74,185,0.243,13 +Danny Goodwin,L,73,195,0.236,13 +Richie Scheinblum,B,73,180,0.263,13 +Rafael Santana,R,73,165,0.246,13 +Steve Dillard,R,73,180,0.243,13 +Rick Joseph,R,73,192,0.243,13 +Ted Kubiak,B,72,175,0.231,13 +Kevin Bell,R,72,195,0.222,13 +Jim Anderson,R,72,170,0.218,13 +Mike Fiore,L,72,175,0.227,13 +Tom O'Malley,L,72,180,0.256,13 +Tito Landrum,R,71,175,0.249,13 +Vic Harris,B,71,165,0.217,13 +Bob Burda,L,71,174,0.224,13 +Sandy Alomar,B,69,140,0.245,13 +Roberto Pena,R,68,170,0.245,13 +Tim Harkness,L,74,182,0.235,14 +John Hale,L,74,195,0.201,14 +Ken Hubbs,R,74,175,0.247,14 +Rod Gilbreath,R,74,180,0.248,14 +Jim Beauchamp,R,74,190,0.231,14 +Darrel Chaney,B,74,188,0.217,14 +Vern Fuller,R,73,170,0.232,14 +Don Kessinger,B,73,170,0.252,14 +Tom Veryzer,R,73,175,0.241,14 +Phil Gagliano,R,73,180,0.238,14 +Bob Uecker,R,73,190,0.2,14 +Bill Plummer,R,73,190,0.188,14 +Bob Molinaro,L,72,190,0.264,14 +Dane Iorg,L,72,180,0.276,14 +Ken Retzer,L,72,185,0.264,14 +Paul Popovich,B,72,175,0.233,14 +Dave Edwards,R,72,170,0.237,14 +Greg Pryor,R,72,180,0.25,14 +Johnny Oates,L,71,188,0.25,14 +Mickey Klutts,R,71,170,0.241,14 +Ed Stroud,L,71,180,0.237,14 +Bubba Morton,R,70,175,0.267,14 +Dick Simpson,R,76,176,0.207,15 +Jerry May,R,74,190,0.234,15 +Doc Edwards,R,74,215,0.238,15 +Don Leppert,R,74,220,0.229,15 +Daryl Sconiers,L,74,185,0.265,15 +Gene Michael,B,74,183,0.229,15 +Rick Wise,R,73,180,0.195,15 +Wayne Krenchicki,L,73,180,0.266,15 +Danny Thompson,R,72,183,0.248,15 +Ray Oyler,R,71,165,0.175,15 +Dave Chalk,R,70,175,0.252,15 +Larry Bowa,B,70,155,0.26,15 +Glenn Borgmann,R,76,210,0.229,16 +Dick Billings,R,73,195,0.227,16 +Steve Huntz,B,73,204,0.206,16 +Ned Yost,R,73,190,0.212,16 +Dave Marshall,L,73,182,0.246,16 +Terry Francona,L,73,190,0.274,16 +Jim Nettles,L,72,186,0.22,16 +Joe Wallis,B,71,180,0.244,16 +Ellie Rodriguez,R,71,185,0.245,16 +Wayne Comer,R,70,175,0.229,16 +Pepe Mangual,R,70,157,0.242,16 +Denny Doyle,L,69,175,0.25,16 +Dick Howser,R,68,155,0.248,16 +Doug Ault,R,75,200,0.236,17 +Billy Smith,B,74,185,0.23,17 +Rob Picciolo,R,74,185,0.234,17 +Hosken Powell,L,73,175,0.259,17 +Tony Scott,B,72,164,0.249,17 +Ray Webster,L,72,185,0.244,17 +Ron Roenicke,B,72,180,0.238,17 +Rick Bosetti,R,71,185,0.25,17 +Bob Brower,R,71,185,0.242,17 +Ted Ford,R,70,180,0.219,17 +Fernando Gonzalez,R,70,165,0.235,17 +Chuck Harrison,R,70,185,0.238,17 +Johnny Jeter,R,73,180,0.244,18 +Rudy Law,L,73,165,0.271,18 +Bruce Benedict,R,73,175,0.242,18 +Harry Spilman,L,73,180,0.237,18 +Rick Leach,L,73,180,0.268,18 +Hector Torres,R,72,175,0.216,18 +Willie Norwood,R,72,185,0.242,18 +Chris Cannizzaro,R,72,190,0.235,18 +Jim Price,R,72,192,0.214,18 +Elliott Maddox,R,71,180,0.261,18 +Doug Camilli,R,71,195,0.199,18 +Bill Voss,L,74,160,0.227,19 +Cap Peterson,R,74,195,0.23,19 +Ron Hodges,L,73,185,0.24,19 +Bobby Clark,R,72,190,0.239,19 +Jim Holt,L,72,180,0.265,19 +Gary Allenson,R,71,185,0.221,19 +Alan Bannister,R,71,170,0.27,19 +Fran Healy,R,77,220,0.25,20 +Doug Frobel,L,76,196,0.201,20 +Thad Bosley,L,75,175,0.272,20 +Steve Swisher,R,74,205,0.216,20 +Bob Jones,L,74,195,0.221,20 +Mark Belanger,R,73,170,0.228,20 +Dave Campbell,R,73,180,0.213,20 +Steve Lombardozzi,R,72,175,0.233,20 +Carmen Fanzone,R,72,200,0.224,20 +Ike Brown,R,72,190,0.256,20 +Rick Renick,R,72,188,0.221,20 +Chuck Hiller,L,71,170,0.243,20 +Billy North,B,71,185,0.261,20 +Rich McKinney,R,71,185,0.225,20 +Ron Washington,R,71,155,0.261,20 +Garth Iorg,R,71,170,0.258,20 +Dave Nelson,R,70,160,0.244,20 +Larvell Blanks,R,68,167,0.253,20 +Bobby Mitchell,R,75,185,0.235,21 +Jerry Narron,L,75,205,0.211,21 +John Wathan,R,74,205,0.262,21 +Hal Breeden,R,74,200,0.243,21 +Dick Nen,L,74,200,0.224,21 +Tom Satriano,L,73,185,0.225,21 +Dave McKay,B,73,195,0.229,21 +Joe Gaines,R,73,190,0.241,21 +Ivan DeJesus,R,71,175,0.254,21 +Dave Cash,R,71,170,0.283,21 +Jim Wohlford,R,71,175,0.26,21 +Jerry White,B,70,164,0.253,21 +Biff Pocoroba,B,70,175,0.257,21 +Nelson Mathews,R,76,195,0.223,22 +Tom Egan,R,76,218,0.2,22 +Jack Hiatt,R,74,190,0.251,22 +Johnnie LeMaster,R,74,165,0.222,22 +Johnny Lewis,L,73,189,0.227,22 +Glenn Beckert,R,73,190,0.283,22 +Roger Freed,R,72,190,0.245,22 +Jerry Buchek,R,71,185,0.22,22 +Tom Hutton,L,71,180,0.248,22 +Felix Millan,R,71,172,0.279,22 +Reid Nichols,R,71,165,0.266,22 +Marty Perez,R,71,160,0.246,22 +Angel Mangual,R,70,178,0.245,22 +Mike Brown,R,74,195,0.265,23 +Bob Montgomery,R,73,195,0.258,23 +Lyman Bostock,L,73,180,0.311,23 +Glenn Hoffman,R,73,175,0.242,23 +Duane Josephson,R,72,190,0.258,23 +Bob Dernier,R,72,160,0.255,23 +Chuck Schilling,R,70,160,0.239,23 +Ted Sizemore,R,70,165,0.262,23 +Alex Trevino,R,70,165,0.249,23 +Julio Cruz,B,69,165,0.237,23 +Bob Chance,L,74,196,0.261,24 +Syd O'Brien,R,73,185,0.23,24 +Hal King,L,73,200,0.214,24 +Steve Whitaker,L,72,180,0.23,24 +Ken Gerhart,R,72,190,0.221,24 +Duane Walker,L,72,185,0.229,24 +Gary Gray,R,72,187,0.24,24 +Eddie Leon,R,72,170,0.236,24 +Steve Ontiveros,B,72,185,0.274,24 +Gary Sutherland,R,72,185,0.243,24 +Norm Miller,L,70,185,0.238,24 +Jerry Moses,R,75,210,0.251,25 +Bill Nahorodny,R,74,200,0.241,25 +Mark Brouhard,R,73,210,0.259,25 +Jake Gibbs,L,72,180,0.233,25 +Tim Foli,R,72,179,0.251,25 +Mike de la Hoz,R,71,175,0.251,25 +Gail Hopkins,L,70,198,0.266,25 +Lenn Sakata,R,69,160,0.23,25 +Curt Motton,R,68,164,0.213,25 +Bruce Bochy,R,75,205,0.239,26 +Bobby Brown,B,74,190,0.245,26 +Manny Jimenez,L,73,185,0.272,26 +John Boccabella,R,73,195,0.219,26 +Frank Duffy,R,73,180,0.232,26 +Gene Richards,L,72,175,0.29,26 +Jose Morales,R,71,187,0.287,26 +Bob Coluccio,R,71,183,0.22,26 +Mike Hershberger,R,70,175,0.252,26 +Ron Woods,R,70,168,0.233,26 +Jesse Gonder,L,70,180,0.251,26 +Dick Davis,R,75,190,0.265,27 +Pete LaCock,L,74,200,0.257,27 +Kurt Bevacqua,R,72,180,0.236,27 +George Vukovich,L,72,198,0.268,27 +Bob Kearney,R,72,190,0.233,27 +Chris Bando,B,72,195,0.227,27 +Jerry McNertney,R,72,180,0.237,27 +Jim Traber,L,72,194,0.227,27 +Andres Mora,R,72,180,0.223,27 +Joe Nolan,L,71,175,0.263,27 +U L Washington,B,71,175,0.251,27 +Felix Torres,R,71,165,0.254,27 +Len Randle,B,70,169,0.257,27 +Horace Clarke,B,69,170,0.256,27 +Mike Tyson,R,69,170,0.241,27 +Mike Ryan,R,74,205,0.193,28 +Mike Anderson,R,74,200,0.246,28 +Danny Walton,R,72,195,0.223,28 +Rick Miller,L,72,175,0.269,28 +Coco Laboy,R,70,165,0.233,28 +Billy Grabarkewitz,R,70,165,0.236,28 +Larry Biittner,L,74,205,0.273,29 +Joe Charboneau,R,74,205,0.266,29 +Charlie James,R,73,195,0.255,29 +Paul Householder,B,72,180,0.236,29 +Rey Quinones,R,71,160,0.243,29 +Vic Correll,R,70,185,0.229,29 +Ed Goodson,L,75,180,0.26,30 +Byron Browne,R,74,190,0.236,30 +Len Matuszek,L,74,190,0.234,30 +Pete Mackanin,R,74,190,0.226,30 +Bobby Wine,R,73,187,0.215,30 +Duffy Dyer,R,72,187,0.221,30 +Steve Brye,R,72,190,0.258,30 +Jim Gosger,L,71,185,0.226,30 +Dave Rader,L,71,165,0.257,30 +Jack Brohamer,L,70,165,0.245,30 +Von Joshua,L,70,170,0.273,30 +Jerry Hairston,B,70,170,0.258,30 +Dave Engle,R,75,210,0.262,31 +David Green,R,75,170,0.268,31 +Mike Diaz,R,74,195,0.247,31 +Buck Rodgers,B,74,190,0.232,31 +Fred Kendall,R,73,185,0.234,31 +Ken Boswell,L,72,170,0.248,31 +Leron Lee,L,72,196,0.25,31 +Chico Salmon,R,70,160,0.249,31 +Joe Lefebvre,L,70,170,0.258,31 +Carl Warwick,R,70,170,0.248,31 +Manny Mota,R,70,160,0.304,31 +Matty Alou,L,69,160,0.307,31 +Clint Hurdle,L,75,195,0.259,32 +Jesus Alou,R,74,190,0.28,32 +Joe Lis,R,72,175,0.233,32 +Rowland Office,L,72,170,0.259,32 +John Kennedy,R,72,185,0.225,32 +Dave Collins,B,71,175,0.272,32 +Mickey Brantley,R,70,180,0.259,32 +Jim Essian,R,74,195,0.244,33 +Ivan Murrell,R,74,195,0.236,33 +Terry Whitfield,L,73,197,0.281,33 +Bob Stinson,B,71,180,0.25,33 +Ed Ott,L,70,190,0.259,33 +Al Luplow,L,70,175,0.235,33 +Walt Williams,R,66,165,0.27,33 +Marc Hill,R,75,205,0.223,34 +Mike Vail,R,73,180,0.279,34 +Glenn Adams,L,73,180,0.28,34 +Ted Savage,R,73,185,0.233,34 +Todd Cruz,R,72,175,0.22,34 +Mike Cubbage,L,72,180,0.258,34 +Tommy Helms,R,70,165,0.269,34 +Al Woods,L,75,190,0.271,35 +Jake Wood,R,73,163,0.25,35 +R.J. Reynolds,B,72,190,0.267,35 +Rusty Torres,B,70,175,0.212,35 +Terry Harper,R,76,195,0.253,36 +Bill Almon,R,75,180,0.254,36 +Ted Uhlaender,L,74,190,0.263,36 +Damaso Garcia,R,73,165,0.283,36 +Larry Stahl,L,72,175,0.232,36 +Charlie Moore,R,71,180,0.261,36 +Bump Wills,B,69,172,0.266,36 +Vic Davalillo,L,67,150,0.279,36 +Dave Hostetler,R,76,215,0.229,37 +Len Gabrielson,L,76,210,0.253,37 +Omar Moreno,L,74,180,0.252,37 +Pedro Garcia,R,70,175,0.22,37 +Luis Aguayo,R,69,173,0.236,37 +Brant Alyea,R,75,215,0.247,38 +Mickey Hatcher,R,74,200,0.28,38 +Benny Ayala,R,73,185,0.251,38 +Chris Brown,R,72,185,0.269,38 +Floyd Rayford,R,70,190,0.244,38 +Wayne Nordhagen,R,74,205,0.282,39 +Rob Wilfong,L,73,180,0.248,39 +Ron Hunt,R,72,186,0.273,39 +Frank Fernandez,R,72,185,0.199,39 +Ed Spiezio,R,71,180,0.238,39 +Hector Cruz,R,71,170,0.225,39 +Jerry Grote,R,70,185,0.252,39 +John Orsino,R,75,215,0.249,40 +Billy Conigliaro,R,72,180,0.256,40 +Billy Cowan,R,72,170,0.236,40 +Joe Hague,L,72,195,0.239,40 +Jerry Royster,R,72,165,0.249,40 +Marvell Wynne,L,71,175,0.247,40 +Bucky Dent,R,69,170,0.247,40 +Walt Bond,L,79,228,0.256,41 +Billy Bryan,L,76,200,0.216,41 +Dalton Jones,L,73,180,0.235,41 +Dave Stapleton,R,73,178,0.271,41 +Rennie Stennett,R,71,160,0.274,41 +John Castino,R,71,175,0.278,41 +Freddie Patek,R,65,148,0.242,41 +Ron Oester,B,74,185,0.265,42 +Andres Thomas,R,73,170,0.234,42 +Craig Reynolds,L,73,175,0.256,42 +Terry Crowley,L,72,180,0.25,42 +Eddie Milner,L,71,173,0.253,42 +George Wright,B,71,180,0.245,42 +Phil Roof,R,74,190,0.215,43 +Art Howe,R,74,190,0.26,43 +Derrel Thomas,B,72,160,0.249,43 +Rich Dauer,R,72,180,0.257,43 +Bob Johnson,R,70,175,0.272,44 +Bill Stein,R,70,170,0.267,44 +Darryl Motley,R,69,196,0.243,44 +Sam Bowens,R,73,188,0.223,45 +Roy Foster,R,72,185,0.253,45 +Tito Fuentes,B,71,175,0.268,45 +Jerry Turner,L,69,180,0.257,45 +Craig Kusick,R,75,210,0.235,46 +John Stearns,R,72,185,0.26,46 +Willie Smith,L,72,182,0.248,46 +Bill Russell,R,72,175,0.263,46 +Cesar Tovar,R,69,155,0.278,46 +Bill Sample,R,69,175,0.272,46 +Larry Brown,R,70,160,0.233,47 +Lou Johnson,R,71,170,0.258,48 +Dave Roberts,R,75,215,0.239,49 +Andy Etchebarren,R,73,190,0.235,49 +Dale Berra,R,72,180,0.236,49 +Paul Casanova,R,76,180,0.225,50 +Joe Azcue,R,72,190,0.252,50 +Tony Solaita,L,72,210,0.255,50 +Rick Burleson,R,70,165,0.273,50 +Al Ferrara,R,73,200,0.259,51 +Cesar Geronimo,L,72,165,0.258,51 +Rich Reese,L,75,185,0.253,52 +Ron Blomberg,L,73,195,0.293,52 +Buddy Bradford,R,71,170,0.226,52 +Steve Braun,L,70,180,0.271,52 +Mike Hegan,L,73,188,0.242,53 +Johnny Ray,B,71,170,0.29,53 +Champ Summers,L,74,205,0.255,54 +Cookie Rojas,R,70,160,0.263,54 +Al Bumbry,L,68,170,0.281,54 +Gary Alexander,R,74,195,0.23,55 +Clay Dalrymple,L,72,190,0.233,55 +Gene Alley,R,70,160,0.254,55 +Barry Bonnell,R,75,190,0.272,56 +Rick Manning,L,73,180,0.257,56 +Bobby Knoop,R,73,170,0.236,56 +Ron Jackson,R,72,200,0.259,56 +Barry Foote,R,75,205,0.23,57 +Paul Schaal,R,71,165,0.244,57 +Ken Berry,R,72,175,0.255,58 +Joe Foy,R,72,215,0.248,58 +Buck Martinez,R,70,190,0.225,58 +Adolfo Phillips,R,73,175,0.247,59 +Bill Sudakis,B,73,190,0.234,59 +Ron LeFlore,R,72,200,0.288,59 +Enos Cabell,R,76,170,0.277,60 +Ed Brinkman,R,72,170,0.224,60 +Ray Fosse,R,74,215,0.256,61 +Bill Schroeder,R,74,200,0.24,61 +Dave Nicholson,R,74,215,0.212,61 +Gary Thomasson,L,73,180,0.249,61 +Manny Trillo,R,73,150,0.263,61 +Wayne Garrett,L,71,175,0.239,61 +Mickey Rivers,L,70,165,0.295,61 +Dave Revering,L,76,210,0.265,62 +Ellie Hendricks,L,73,175,0.22,62 +Jeff Newman,R,74,215,0.224,63 +Bake McBride,L,74,190,0.299,63 +Pat Putnam,L,72,205,0.255,63 +Lamar Johnson,R,74,215,0.287,64 +Wes Parker,B,73,180,0.267,64 +Charlie Spikes,R,75,215,0.246,65 +Tom Grieve,R,74,190,0.249,65 +Joe Lahoud,L,73,198,0.223,65 +Lou Clinton,R,73,185,0.247,65 +Butch Wynegar,B,73,190,0.255,65 +Manny Sanguillen,R,72,193,0.296,65 +Mike Andrews,R,75,195,0.258,66 +Dick Dietz,R,73,195,0.261,66 +Danny Cater,R,72,170,0.276,66 +Merv Rettenmund,R,70,190,0.271,66 +Floyd Robinson,L,69,175,0.283,67 +Mike Shannon,R,75,195,0.255,68 +Steve Henderson,R,74,190,0.28,68 +Art Shamsky,L,73,168,0.253,68 +Ken Reitz,R,72,180,0.26,68 +John Ellis,R,74,225,0.262,69 +Charley Smith,R,73,170,0.239,69 +Jerry Mumphrey,B,74,185,0.289,70 +Glenn Hubbard,R,69,150,0.244,70 +Tom Brookens,R,70,165,0.246,71 +Mitchell Page,L,74,205,0.266,72 +Mike Young,B,74,195,0.247,72 +Andy Kosco,R,75,205,0.236,73 +Ron Swoboda,R,74,195,0.242,73 +Bernie Allen,L,72,175,0.239,73 +Jim Lefebvre,B,72,180,0.251,74 +Tommy McCraw,L,72,183,0.246,75 +Ralph Garr,L,71,185,0.306,75 +Tony Horton,R,75,210,0.268,76 +George Mitterwald,R,74,195,0.236,76 +Pat Kelly,L,73,185,0.264,76 +Tim Laudner,R,75,212,0.225,77 +Leroy Stanton,R,73,195,0.244,77 +Milt May,L,72,190,0.263,77 +Rich Rollins,R,70,185,0.269,77 +Jim Dwyer,L,70,165,0.26,77 +Don Wert,R,70,162,0.242,77 +Leon Roberts,R,75,200,0.267,78 +Julian Javier,R,73,175,0.257,78 +Otto Velez,R,72,170,0.251,78 +Alex Johnson,R,72,205,0.288,78 +Phil Bradley,R,72,185,0.286,78 +Bob Tillman,R,76,205,0.232,79 +Juan Beniquez,R,71,150,0.274,79 +Bert Campaneris,R,70,160,0.259,79 +Ed Herrmann,L,73,195,0.24,80 +Roy Howell,L,73,190,0.261,80 +Joel Youngblood,R,72,180,0.265,80 +Mike Hargrove,L,72,195,0.29,80 +Dick Green,R,70,180,0.24,80 +Johnny Edwards,L,76,220,0.242,81 +Mike Ivie,R,75,205,0.269,81 +John Bateman,R,75,210,0.23,81 +Roger Repoz,L,75,190,0.224,82 +Randy Hundley,R,71,170,0.236,82 +Bobby Darwin,R,74,190,0.251,83 +Ray Knight,R,73,185,0.271,84 +Gates Brown,L,71,220,0.257,84 +Jerry Martin,R,73,195,0.251,85 +Ed Kirkpatrick,L,71,195,0.238,85 +Tom Paciorek,R,76,215,0.282,86 +Willie Crawford,L,73,197,0.268,86 +John Wockenfuss,R,72,190,0.262,86 +Bobby Tolan,L,71,170,0.265,86 +Dan Meyer,L,71,180,0.253,86 +Ed Charles,R,70,170,0.263,86 +Del Unser,L,73,180,0.258,87 +Bo Diaz,R,71,185,0.255,87 +Alan Ashby,B,74,185,0.245,90 +Mike Lum,L,72,180,0.247,90 +Carlos May,L,71,200,0.274,90 +Cito Gaston,R,75,190,0.256,91 +Mike Davis,L,74,175,0.259,91 +Bob Brenly,R,74,210,0.247,91 +Lee Lacy,R,73,175,0.286,91 +Ken Landreaux,L,70,165,0.268,91 +Rod Carew,L,72,170,0.328,92 +Lee Mazzilli,B,73,180,0.259,93 +Cleon Jones,R,72,185,0.281,93 +Don Buford,B,67,160,0.264,93 +Bob Oliver,R,75,205,0.256,94 +Jim Sundberg,R,72,190,0.248,95 +Mike Jorgensen,L,72,195,0.243,95 +Jerry Morales,R,70,155,0.259,95 +Bernie Carbo,L,71,173,0.264,96 +Dave May,L,70,186,0.251,96 +Ozzie Virgil,R,73,180,0.243,98 +Pete Ward,L,73,185,0.254,98 +Butch Hobson,R,73,193,0.248,98 +Johnny Grubb,L,75,175,0.278,99 +Bruce Bochte,L,75,195,0.282,100 +Duke Sims,L,74,197,0.239,100 +Dave Concepcion,R,74,155,0.267,101 +Denis Menke,R,72,185,0.25,101 +Ollie Brown,R,74,178,0.265,102 +Jay Johnstone,L,73,175,0.267,102 +Steve Yeager,R,72,190,0.228,102 +Lou Piniella,R,72,182,0.291,102 +Eric Soderholm,R,71,187,0.264,102 +Tony Gonzalez,L,69,170,0.286,103 +Bob Boone,R,74,195,0.254,105 +Lee Thomas,L,74,195,0.255,106 +Larry Herndon,R,75,190,0.274,107 +Fred Whitfield,L,73,190,0.253,108 +Al Cowens,R,73,197,0.27,108 +Dave Duncan,R,74,190,0.214,109 +Phil Garner,R,70,175,0.26,109 +Willie Aikens,L,75,220,0.271,110 +Max Alvis,R,71,185,0.247,111 +Curt Blefary,L,74,195,0.237,112 +Chris Speier,R,73,175,0.246,112 +Jim Morrison,R,71,175,0.26,112 +Greg Walker,L,75,205,0.26,113 +Chuck Hinton,R,73,180,0.264,113 +Thurman Munson,R,71,190,0.292,113 +Bob Robertson,R,73,195,0.242,115 +Rick Reichardt,R,75,210,0.261,116 +John Lowenstein,L,72,175,0.253,116 +Garry Maddox,R,75,175,0.285,117 +Mickey Stanley,R,73,185,0.248,117 +Ed Kranepool,L,75,205,0.261,118 +Mike Easler,L,72,190,0.293,118 +Leo Cardenas,R,71,150,0.257,118 +Gary Roenicke,R,75,205,0.247,121 +Wayne Gross,L,74,210,0.233,121 +Dan Ford,R,73,185,0.27,121 +Jimmie Hall,L,72,175,0.254,121 +Keith Moreland,R,72,190,0.279,121 +Nick Esasky,R,75,200,0.25,122 +Don Lock,R,74,195,0.238,122 +Ken Henderson,B,74,180,0.257,122 +Joe Ferguson,R,74,200,0.24,122 +Ellis Valentine,R,76,205,0.278,123 +Ken Phelps,L,73,209,0.239,123 +Willie Upshaw,L,72,185,0.262,123 +Aurelio Rodriguez,R,70,180,0.237,124 +Jody Davis,R,76,192,0.245,127 +Mike Epstein,L,75,230,0.244,130 +Gary Ward,R,74,195,0.276,130 +Steve Kemp,L,72,195,0.278,130 +Tommie Agee,R,71,195,0.255,130 +Jorge Orta,L,70,170,0.278,130 +Ken Harrelson,R,74,190,0.239,131 +John Milner,L,72,185,0.249,131 +Mack Jones,L,73,180,0.252,133 +Tom Haller,L,76,195,0.257,134 +Paul Blair,R,72,168,0.25,134 +Davey Johnson,R,73,170,0.261,136 +Earl Williams,R,75,215,0.247,138 +Jose Cardenal,R,70,150,0.275,138 +Johnny Briggs,L,73,190,0.253,139 +Willie Montanez,L,72,170,0.275,139 +Jeffrey Leonard,R,74,200,0.266,144 +Jim Spencer,L,74,195,0.25,146 +Tommy Harper,R,69,165,0.257,146 +Leon Durham,L,73,185,0.277,147 +Ruppert Jones,L,70,170,0.25,147 +Sixto Lezcano,R,70,165,0.271,148 +Lou Brock,L,71,170,0.293,149 +Jim Fregosi,R,73,190,0.265,151 +Jim Northrup,L,75,190,0.267,153 +Tom Tresh,B,73,180,0.245,153 +Dan Driessen,L,71,187,0.267,153 +Doug Rader,R,74,208,0.251,155 +Davey Lopes,R,69,170,0.263,155 +Ken McMullen,R,75,190,0.248,156 +Donn Clendenon,R,76,209,0.274,159 +Jim Hickman,R,75,192,0.252,159 +Bill Melton,R,74,200,0.253,160 +Pete Rose,B,71,192,0.303,160 +Frank White,R,71,165,0.255,160 +Roy White,B,70,160,0.271,160 +Keith Hernandez,L,72,180,0.296,162 +Roy Smalley,B,73,185,0.257,163 +Bill Madlock,R,71,180,0.305,163 +Claudell Washington,L,72,190,0.278,164 +Jose Cruz,L,72,170,0.284,165 +Tony Conigliaro,R,75,185,0.264,166 +Bill Robinson,R,74,189,0.258,166 +Larry Hisle,R,74,193,0.273,166 +Dwayne Murphy,L,73,185,0.246,166 +Jim Ray Hart,R,71,185,0.278,170 +Nate Colbert,R,74,190,0.243,173 +Bill Buckner,L,72,185,0.289,174 +Don Money,R,73,170,0.261,176 +Joe Rudi,R,74,200,0.264,179 +Willie Davis,L,74,180,0.279,182 +Bob Watson,R,72,201,0.295,184 +Chris Chambliss,L,73,195,0.279,185 +Darrell Porter,L,72,193,0.247,188 +Bob Bailey,R,73,180,0.257,189 +Hal McRae,R,71,180,0.29,191 +Amos Otis,R,71,165,0.277,193 +Toby Harrah,R,72,175,0.264,195 +Cliff Johnson,R,76,215,0.258,196 +Dick McAuliffe,L,71,176,0.247,197 +Cesar Cedeno,R,74,175,0.285,199 +Don Mincher,L,75,205,0.249,200 +Bill Freehan,R,75,203,0.262,200 +Oscar Gamble,L,71,160,0.265,200 +Buddy Bell,R,73,180,0.279,201 +Gene Tenace,R,72,190,0.241,201 +Richie Hebner,L,73,195,0.276,203 +Rico Carty,R,75,200,0.299,204 +Richie Zisk,R,73,200,0.287,207 +Jason Thompson,L,76,200,0.261,208 +Rico Petrocelli,R,72,175,0.251,210 +Chet Lemon,R,72,190,0.273,215 +Bob Horner,R,73,195,0.277,218 +Joe Pepitone,L,74,185,0.258,219 +Al Oliver,L,72,195,0.303,219 +Tony Oliva,L,73,175,0.304,220 +Bobby Grich,R,74,180,0.266,224 +Gary Matthews,R,74,185,0.281,234 +Ben Oglivie,L,74,160,0.273,235 +Doug DeCinces,R,74,190,0.259,237 +Jeff Burroughs,R,73,200,0.261,240 +Rick Monday,L,75,193,0.264,241 +Cecil Cooper,L,74,165,0.298,241 +Dusty Baker,R,74,183,0.278,242 +Sal Bando,R,72,195,0.254,242 +Deron Johnson,R,74,200,0.244,245 +Ken Singleton,B,76,210,0.282,246 +Ted Simmons,B,71,193,0.285,248 +Tony Armas,R,71,182,0.252,251 +Joe Torre,R,74,212,0.297,252 +Bobby Murcer,L,71,160,0.277,252 +Andre Thornton,R,75,200,0.254,253 +John Mayberry,L,75,215,0.253,255 +Larry Parrish,R,75,190,0.263,256 +George Hendrick,R,75,195,0.278,267 +Gorman Thomas,R,74,210,0.225,268 +Joe Morgan,L,67,160,0.271,268 +George Scott,R,74,200,0.268,271 +Steve Garvey,R,70,192,0.294,272 +Jimmy Wynn,R,70,160,0.25,291 +Rusty Staub,L,74,190,0.279,292 +Fred Lynn,L,73,185,0.283,306 +Greg Luzinski,R,73,220,0.276,307 +Reggie Smith,B,72,180,0.287,314 +Ron Cey,R,70,185,0.261,316 +Willie Horton,R,71,209,0.273,325 +Bobby Bonds,R,73,190,0.268,332 +Don Baylor,R,73,190,0.26,338 +Boog Powell,L,76,230,0.266,339 +Ron Santo,R,72,190,0.277,342 +George Foster,R,73,180,0.274,348 +Dick Allen,R,71,187,0.292,351 +Lee May,R,75,195,0.267,354 +Tony Perez,R,74,175,0.279,379 +Jim Rice,R,74,200,0.298,382 +Johnny Bench,R,73,197,0.267,389 +Graig Nettles,L,72,180,0.248,390 +Darrell Evans,L,74,200,0.248,414 +Dave Kingman,R,78,210,0.236,442 +Carl Yastrzemski,L,71,175,0.285,452 +Willie Stargell,L,74,188,0.282,475 +Mike Schmidt,R,74,195,0.267,548 +Reggie Jackson,L,72,195,0.262,563 diff --git a/baseball_data.xlsx b/baseball_data.xlsx new file mode 100644 index 0000000..e5ec3bb Binary files /dev/null and b/baseball_data.xlsx differ diff --git a/index.css b/index.css index f1e2121..b8ac477 100644 --- a/index.css +++ b/index.css @@ -9,11 +9,24 @@ body { margin: 0; fill: #23adff; font-weight: bold; + position: absolute; + top: 5vh; + left: 7vw; +} +svg { + position: absolute; + top: 5vh; + left: 1vw; } .info { + position: absolute; font-size: 3vmin; color: #FFFFFF; } +#subtext { + top: 12vh; + left: 7vw; +} #legendTitle { position: absolute; font-size: 3.5vmin; @@ -30,6 +43,11 @@ body { stroke: #FFFFFF; shape-rendering: crispEdges; } +#outcome { + top: 47vh; + left: 7vw; + width: 40vw; +} h2, h3, p { display: inline-block; } @@ -71,3 +89,37 @@ div.hand_buttons div { div.hand_buttons div:hover { cursor: pointer; } +.summaryChart { + color: #FFFFFF; +} +h1 { + font-size: 1.5vw; +} +.bar { + font-size: 2vmin; + text-align: right; + padding-right: 1vmin; + margin: 5px; + color: #000000; + font-weight: bold; +} + +#battingAvgSummary { + position: absolute; + top: 22vh; + left: 8vw; +} +#hrAvgSummary { + position: absolute; + top: 22vh; + left: 26vw; +} +.red { + color: #f44242; +} +.green { + color: #42f480; +} +.blue { + color: #23adff; +} \ No newline at end of file diff --git a/index.html b/index.html index 66e441f..471dfaf 100644 --- a/index.html +++ b/index.html @@ -3,10 +3,26 @@
+ - +