📄️ Getting started
Before getting started, you need to ensure the following JS libraries has been installed and copied to the public/vendors directory:
📄️ Basic Concepts
Time series statistics are any statistic that varies over time. Using time series stats, you can track any numerical value that changes over time within a given time period. For example, this could be daily user signups, weekly sales, etc. Currently, this package allows viewing time series stats in the following modes:
📄️ Defining time series stats
To define a time series stat, you have to provide the query for each of the available time series modes, and a query to get the total for the full date range.
📄️ Using filters
You can add allowed filters to your stat class by overriding the allowedFilters method of your stat class. The allowedFilters method should return an array of Javaabu\Stats\Contracts\Filter objects.
📄️ Formatters
Formatters allow formatting the results from your stats classes to different formats.
📄️ Displaying model specific stats
Often times you might want to display a model specific stats in a nested route of the model. For example, you might want to have a page where you can display the stats for a specific customer. This package provides helpful traits and view components to achieve that.
📄️ Predefined stats
This package ships with several different predefined stats that might be useful. These stats would be included only if you have a App\Model\User class.