mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Burnup report showing decimals on hover
Summary: Added yformat to ManiphestReportController. Removed [yy] from the js. Will pull config.yformat or send []. The old way with [yy] never seemed to worked having config.yformat, also would crash if yformat was in with value Test Plan: Loadup burn up report, hover over a given date. Number of tasks opened should be an int Reviewers: epriestley, #blessed_reviewers CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8080
This commit is contained in:
parent
8735ec4dbe
commit
2721aa272b
2 changed files with 2 additions and 1 deletions
|
@ -294,6 +294,7 @@ final class ManiphestReportController extends ManiphestController {
|
|||
$burn_y,
|
||||
),
|
||||
'xformat' => 'epoch',
|
||||
'yformat' => 'int',
|
||||
));
|
||||
|
||||
return array($filter, $chart, $panel);
|
||||
|
|
|
@ -64,7 +64,7 @@ JX.behavior('line-chart', function(config) {
|
|||
if (config.x[0][ii] > this.axis) {
|
||||
break;
|
||||
}
|
||||
yvalue = format(config.y[yy][ii], (config.yformat || [])[yy]);
|
||||
yvalue = format(config.y[yy][ii], config.yformat);
|
||||
}
|
||||
|
||||
var xvalue = format(this.axis, config.xformat);
|
||||
|
|
Loading…
Reference in a new issue