Category: Statistics Setup
Game statistics can be used to track a players progress and performance level. Your site allows you to define sets of statistics and enter data on a game by game basis for each player. To do this, you'll need to perform the following setup tasks:
- Create Statistics Categories such as "Skater", "Goalie", etc. Each one of these categories will have a fixed set of individual statistics associated with it. If you keep track of different criteria for different player positions, this is how you'll distinguish them.
To create categories, click the Statistics menu choice in the Admin area,
Admin > Teams > Define Player Stats. The resulting form has a plus sign on it for adding categories. Click this and fill in the form. Use the List Position field to control the order in which categories are displayed on reports.
- Under each category, add individual statistics like shots, goals, assists, etc. You can even define calculated statistics using formulas that include other statistics. Click the plus sign that'll appear under each category to get the statistic form. Fill in the Name, Description and List Position fields. The name should be as short as possible so the list won't be too crowded in actual reports. The description will be used to provide a tooltip for each item in reports to help visitors figure out what your cryptic stat names are. As above, use the List Position field to control the order of items in reports. The remaining fields are used to define formulas and format their output.
- Now that you've defined the information you want to capture, we're almost ready to start entering data. But first you need to configure your teams to allow statistics. For each team you want supported, go to their information form and select one of the following options from the Statistics drop down menu:
- The first choice "N/A" is the default which is to not display statistics for that team.
- "Available to the Public" will enable statistics display and make them available to the general public.
- "Team Members Only" allows display only through the Team Password.
- "Managers Only" permits only team managers, coaches and administrators to view the team's statistics.
You can also choose to display only the first letter of a player's last name for even more privacy. Once you've chosen one of the options above, the team's menu and results page will have new options.
- On a statistics enabled team's Results page, there is a new icon shaped like a chart or graph. Managers can click this icon to display a list of players on their team and select the player category (defined above in step 1) for each for that game. To the right of each player's category drop down is a button that when clicked will bring up a form where all their stats can be entered.
- Back on the Results page, visitors can click the icon on the left side of the display to bring up a summary page for each game. Included on this page is basic game information, any commentary entered for the game, and a listing of each player and their stats for that game.
- Player Categories and Statistics Definitions
- This page is used to display the current statistics categories and the individual statistics defined for each one. The page is laid out in a hierarchical format with category names at the top level and their statistic names below. You add categories or statistics by clicking the Plus icon at the bottom of their respective lists. This will bring up a form where you can enter data that describes the item. To the left of each item is a delete icon which can be used to delete the item. Clicking any category or statistic name will bring up the information form for the item.
This form is used to define a statistics category. Categories are used to create lists of statistics for a particular category of player. For example, in hockey, you probably use different data to track a skater than you do a goalie. Similarly, a pitcher's statistics are different from a batter's in baseball. This form is used simply to specify a name to use for a category and also an ordering number to control it's position within lists. The two fields are as follows:
- he name you want associated with this category. Use any alphanumeric combination you want.
- List Position
- This field can be used to control the order of Categories as they are displayed in lists and on tabs for statistics reports. A lower number will bring the category towards the top while a higher one will place it further down. It's usually a good idea to use widely spaced values so that you can insert other categories later without having to renumber the list. That is, if you space the numbers out by say 10, you could later insert items between items 10 and 20 for instance. If you leave this field blank, categories will be sorted alphabetically by name.
This form is used to define a statistic. A statistic can be any piece if numeric data you wish track such as shots, goals or even calculated data such as percentages. Use this form to define the following characteristics of a particular statistic:
- The name you want associated with this statistic. Use any alphanumeric combination you want but you should keep it as short as possible in order not to crowd reports. You should also avoid using arithmetic operators by themselves such as + or -. If you must, combine them with other characters such as "(+)" for example.
- Use this field to describe the statistic. The description you enter here will provide balloon help to visitors so that they can understand what this statistic's data represents. This is especially important if you use very brief names above.
- List Position
- This field can be used to control the order of statistics as they are displayed in lists and reports. A lower number will bring the category towards the top while a higher one will place it further down. It's usually a good idea to use widely spaced values so that you can insert other statistics later without having to renumber the list from the insertion point down. That is, if you space the numbers out by say 10, you could later insert items between items 10 and 20 for instance. If you leave this field blank, statistics will be sorted alphabetically by name.
- A statistic can be calculated from other statistics rather than entered on a form. For example, you might want to display shooting percentage calculated from shots and goals data. If so, you can define the formula here. You can enter any valid arithmetic expression here as long as it conforms to the rules of the Visual Basic programming language. You can refer to other statistics by simply using their names. You can even refer to other calculated statistics. A list of currently defined statistics names is provided just below the formula field for your reference. You can use any of the following arithmetic operators in your formula:
"*" - Multiplication
"/" - Division
"\" - Integer Division
"mod" - Modulus, or Remainder
"^" - Raise to a Power
You can also use any of Visual Basic's built in numeric functions such as Sqr (square root) or Abs (absolute value, no sign).
The following formula could be used to calculate a hockey players shooting percentage:
Goals / Shots * 100
Note that if you enter a formula in this field, it will not be shown on the statistics entry form. If you want to be able to enter values by hand, you must leave this field blank.
- Decimals Places
- Use this field to specify the number of decimal places that will be displayed on reports for calculated statistics.
- Follow with
- You can specify a character or word to follow a particular statistic in reports. For instance, you might want the percent character (%) to follow a calculated percentage field or the abbreviation "min" on a minutes played statistic. Whatever you enter here will be added to the end of the displayed number.