Property | Type | Description | |
---|---|---|---|
$apiMethod | The api method to get the data. Format: Plugin.apiAction | ||
$availableMetrics | The metrics that are available for the requested report and period | ||
$dataTable | The data | ||
$date | The requested date | ||
$dimension | The name of the dimension of the current report | ||
$graphMetrics | The metrics for the graph that has been requested last | ||
$graphType | The type of graph that has been requested last | ||
$idSite | The current site id | ||
$initiallyShowAllMetrics | Whether or not to show all metrics in the evolution graph when to popover opens | ||
$label | The label of the requested row | ||
$period | The requested period | ||
$rowIcon | The icon of the current record | ||
$rowLabel | The label of the current record | ||
$segment | The request segment |
Method | Description | |
---|---|---|
__construct ( integer $idSite, |
The constructor Initialize some local variables from the request | |
getRowEvolutionGraph ( string | boolean $graphType = false, array | boolean $metrics = false ) : |
Generic method to get an evolution graph or a sparkline for the row evolution popover. | |
renderPopover ( |
Render the popover | |
useAvailableMetrics ( ) | Use the available metrics for the metrics of the last requested graph. |
Method | Description | |
---|---|---|
extractEvolutionReport ( $report ) | ||
extractPrettyLabel ( $report ) : string | ||
getMetricsToggles ( ) : array | Prepare metrics toggles with spark lines | |
getSparkline ( $metric ) | Get the img tag for a sparkline showing a single metric | |
loadEvolutionReport ( $column = false ) |
Method | Description | |
---|---|---|
getFirstAndLastDataPointsForMetric ( $metric ) |
protected extractPrettyLabel ( $report ) : string | ||
$report | ||
return | string |
protected getMetricsToggles ( ) : array | ||
return | array |
protected getSparkline ( $metric ) |
public renderPopover ( |
||
$controller |
public useAvailableMetrics ( ) |
protected $apiMethod |
protected $availableMetrics |
protected DataTable,Piwik $dataTable | ||
return |
protected $dimension |
protected $graphMetrics |
protected $graphType |
protected $initiallyShowAllMetrics |