Page MenuHomePhorge

PhabricatorScaleChartFunction.php
No OneTemporary

Size
468 B
Referenced Files
None
Subscribers
None

PhabricatorScaleChartFunction.php

<?php
final class PhabricatorScaleChartFunction
extends PhabricatorPureChartFunction {
const FUNCTIONKEY = 'scale';
protected function newArguments() {
return array(
$this->newArgument()
->setName('scale')
->setType('number'),
);
}
public function evaluateFunction(array $xv) {
$scale = $this->getArgument('scale');
$yv = array();
foreach ($xv as $x) {
$yv[] = $x * $scale;
}
return $yv;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 1:49 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
120933
Default Alt Text
PhabricatorScaleChartFunction.php (468 B)

Event Timeline