Customizing Statistics

There are some aspects of the statistics page that can be customized through App Resources.

  • Changing the page refresh time
  • Changing preparations to lots/total system

Setting refresh time —

Currently, the statistics page will refresh every 24 hours. The code can support arbitrary time. However, this is currently stored as a collection preference, so users will need to modify collection preference JSON if they want any other time.

  1. Go to CollectionPreferences in App Resources for the collection you want to set refresh rate for

  2. Add ”refreshRate”:time. Note that time is assumed to be in hours. So, put 0.05 if you want it to refresh every 3 minutes. Put 0 to refresh every time.


Switching to lots instead of lots / total —

By default, the preparation statistics display both lots and totals. However, some collections may prefer to only show the number of lots, as lots/totals do not provide any extra information.
Admins can customize the collection statistics to show only lots by following these steps:

This can be done by modifying the JSON in the CollectionPreferences file at the desired collection level.

  1. Go to CollectionPreferences in App Resources for the collection you want to enable lots/total.

  2. Add "showPreparationsTotal": false, between appearance and layout as shown below:

    {
      "statistics": {
        "appearance": {
          "showPreparationsTotal": false,
          "layout": [
            {
              "label": "Collection",
              "categories": [
                {
    

  3. Go to the Statistics Page and refresh!
    You will now see just the count of preparations instead of the total.