getRowEvolutionGraph() public method

Generic method to get an evolution graph or a sparkline for the row evolution popover
public getRowEvolutionGraph ( $fetch = false, $rowEvolution = null )
 /**
  * Render the popover
  * @param \Piwik\Plugins\CoreHome\Controller $controller
  * @param View (the popover_rowevolution template)
  */
 public function renderPopover($controller, $view)
 {
     // render main evolution graph
     $this->graphType = 'graphEvolution';
     $this->graphMetrics = $this->availableMetrics;
     $view->graph = $controller->getRowEvolutionGraph($fetch = true, $rowEvolution = $this);
     // render metrics overview
     $view->metrics = $this->getMetricsToggles();
     // available metrics text
     $metricsText = Piwik::translate('RowEvolution_AvailableMetrics');
     $popoverTitle = '';
     if ($this->rowLabel) {
         $icon = $this->rowIcon ? '<img src="' . $this->rowIcon . '" alt="">' : '';
         $metricsText = sprintf(Piwik::translate('RowEvolution_MetricsFor'), $this->dimension . ': ' . $icon . ' ' . $this->rowLabel);
         $popoverTitle = $icon . ' ' . $this->rowLabel;
     }
     $view->availableMetricsText = $metricsText;
     $view->popoverTitle = $popoverTitle;
     return $view->render();
 }