Page MenuHomePhorge

PhabricatorMinChartFunction.php
No OneTemporary

Size
518 B
Referenced Files
None
Subscribers
None

PhabricatorMinChartFunction.php

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

File Metadata

Mime Type
text/x-php
Expires
Thu, May 29, 12:37 PM (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
179130
Default Alt Text
PhabricatorMinChartFunction.php (518 B)

Event Timeline