Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548444
PhabricatorScaleChartFunction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
468 B
Referenced Files
None
Subscribers
None
PhabricatorScaleChartFunction.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment