private function remapSeries($oY, $idx, $scale = 1) { $maxY = $oY->max; $max = 0; foreach ($this->aData[$idx] as $v) { $v = (double) $v; if ($v > $max) { $max = $v; } } foreach ($this->aData[$idx] as $k => $v) { if (isset($v)) { if (!$max) { $this->aData[$idx][$k] = 0; } else { $oValue = new solid_dot((double) $v / $max * $maxY * $scale); $oValue->tooltip(str_replace('#val#', $v, $this->aTooltips[$idx])); if (!empty($this->drillDown)) { $oValue->on_click($this->drillDown); } $this->aData[$idx][$k] = $oValue; } } } }