You are here

function statspro_views_handler_field_graph::render in Statistics Pro 6.2

1 method overrides statspro_views_handler_field_graph::render()
statspro_views_handler_field_graph_trend::render in views/statspro_views_handler_field_graph_trend.inc

File

views/statspro_views_handler_field_graph.inc, line 40
Views field handler for graph

Class

statspro_views_handler_field_graph
@file Views field handler for graph

Code

function render($values) {
  $estimation = $values->{$this->field_alias};
  $rc = '-';
  switch ($this->options['display_mode']) {
    case 'graph':
      if ($estimation) {
        $rc = $this
          ->get_bar_graph($values);
      }
      break;
    default:
      if ($estimation) {
        $rc = $estimation;
      }
      break;
  }
  return $rc;
}