Backend\Classes\Dashboard\ReportDateDataSet

Overview

ReportDateDataSet represents a data set for a date dimension.


Public Methods

public __construct()

public __construct(
    ReportDimension $dimension,
    array $metrics,
    CarbonPeriod $range,
    string $groupInterval,
    array $values,
    ?ReportDataOrderRule $orderRule
): void

public addValues()

public addValues(array $values): void

Adds values to the dataset

public addValuesFromCache()

public addValuesFromCache(array $values): void

Adds values loaded from a cache

public aggregateData()

public aggregateData(string $groupInterval): array 

Aggregates metric values in the dataset.

public getNormalizedData()

public getNormalizedData(): array 

Adds missing data points and properties.