original_string: public function getRowEvolutionGraph($graphType = false, $metrics = false)
      {
          // set up the view data table
          $view = Factory::build($graphType ? : $this->graphType, $this->apiMethod,
              $controllerAction = 'CoreHome.getRowEvolutionGraph', $forceDefault = true);
          $view->setDataTable($this->dataTable);
  
          if (!empty($this->graphMetrics)) { // In row Evolution popover, this is empty
              $view->config->columns_to_display = array_keys($metrics ? : $this->graphMetrics);
          }
  
          $view->requestConfig->request_parameters_to_modify['label'] = '';
          $view->config->show_goals = false;
          $view->config->show_search = false;
          $view->config->show_all_views_icons = false;
          $view->config->show_related_reports  = false;
          $view->config->show_series_picker    = false;
          $view->config->show_footer_message   = false;
  
          foreach ($this->availableMetrics as $metric => $metadata) {
              $view->config->translations[$metric] = $metadata['name'];
          }
  
          $view->config->external_series_toggle = 'RowEvolutionSeriesToggle';
          $view->config->external_series_toggle_show_all = $this->initiallyShowAllMetrics;
  
          return $view;
      }
code: public function getRowEvolutionGraph($graphType = false, $metrics = false)
      {
          // set up the view data table
          $view = Factory::build($graphType ? : $this->graphType, $this->apiMethod,
              $controllerAction = 'CoreHome.getRowEvolutionGraph', $forceDefault = true);
          $view->setDataTable($this->dataTable);
  
          if (!empty($this->graphMetrics)) { // In row Evolution popover, this is empty
              $view->config->columns_to_display = array_keys($metrics ? : $this->graphMetrics);
          }
  
          $view->requestConfig->request_parameters_to_modify['label'] = '';
          $view->config->show_goals = false;
          $view->config->show_search = false;
          $view->config->show_all_views_icons = false;
          $view->config->show_related_reports  = false;
          $view->config->show_series_picker    = false;
          $view->config->show_footer_message   = false;
  
          foreach ($this->availableMetrics as $metric => $metadata) {
              $view->config->translations[$metric] = $metadata['name'];
          }
  
          $view->config->external_series_toggle = 'RowEvolutionSeriesToggle';
          $view->config->external_series_toggle_show_all = $this->initiallyShowAllMetrics;
  
          return $view;
      }
code_tokens: public function getRowEvolutionGraph ( $ graphType = false , $ metrics = false ) { // set up the view data table $ view = Factory :: build ( $ graphType ? : $ this -> graphType , $ this -> apiMethod , $ controllerAction = 'CoreHome.getRowEvolutionGraph' , $ forceDefault = true ) ; $ view -> setDataTable ( $ this -> dataTable ) ; if ( ! empty ( $ this -> graphMetrics ) ) { // In row Evolution popover, this is empty $ view -> config -> columns_to_display = array_keys ( $ metrics ? : $ this -> graphMetrics ) ; } $ view -> requestConfig -> request_parameters_to_modify [ 'label' ] = '' ; $ view -> config -> show_goals = false ; $ view -> config -> show_search = false ; $ view -> config -> show_all_views_icons = false ; $ view -> config -> show_related_reports = false ; $ view -> config -> show_series_picker = false ; $ view -> config -> show_footer_message = false ; foreach ( $ this -> availableMetrics as $ metric => $ metadata ) { $ view -> config -> translations [ $ metric ] = $ metadata [ 'name' ] ; } $ view -> config -> external_series_toggle = 'RowEvolutionSeriesToggle' ; $ view -> config -> external_series_toggle_show_all = $ this -> initiallyShowAllMetrics ; return $ view ; }
docstring: Generic method to get an evolution graph or a sparkline for the row evolution popover.
  Do as much as possible from outside the controller.
  @param string|bool $graphType
  @param array|bool $metrics
  @return Factory
docstring_tokens: Generic method to get an evolution graph or a sparkline for the row evolution popover . Do as much as possible from outside the controller .