39 $maxValue = ~PHP_INT_MAX;
40 foreach($this->rows as $row)
42 $maxValue = max($maxValue, $row[
'value']);
44 foreach($this->rows as &$row)
46 $row[
'width'] = $maxValue == 0 ? 0 : (($this->width / $maxValue) * $row[
'value']);
48 $this->render(
'ChartWidget');