Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestReportController.php
Show First 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | $chart = phutil_tag( | ||||
'background-color: #fff; '. | 'background-color: #fff; '. | ||||
'margin: 8px 16px; '. | 'margin: 8px 16px; '. | ||||
'height: 400px; ', | 'height: 400px; ', | ||||
), | ), | ||||
''); | ''); | ||||
list($burn_x, $burn_y) = $this->buildSeries($data); | list($burn_x, $burn_y) = $this->buildSeries($data); | ||||
require_celerity_resource('raphael-core'); | require_celerity_resource('d3'); | ||||
require_celerity_resource('raphael-g'); | require_celerity_resource('phui-chart-css'); | ||||
require_celerity_resource('raphael-g-line'); | |||||
Javelin::initBehavior('line-chart', array( | Javelin::initBehavior('line-chart', array( | ||||
'hardpoint' => $id, | 'hardpoint' => $id, | ||||
'x' => array( | 'x' => array( | ||||
$burn_x, | $burn_x, | ||||
), | ), | ||||
'y' => array( | 'y' => array( | ||||
$burn_y, | $burn_y, | ||||
), | ), | ||||
'xformat' => 'epoch', | 'xformat' => 'epoch', | ||||
'yformat' => 'int', | 'yformat' => 'int', | ||||
)); | )); | ||||
return array($filter, $chart, $panel); | $box = id(new PHUIObjectBoxView()) | ||||
->setHeaderText(pht('Burnup Rate')) | |||||
->appendChild($chart); | |||||
return array($filter, $box, $panel); | |||||
} | } | ||||
private function renderReportFilters(array $tokens, $has_window) { | private function renderReportFilters(array $tokens, $has_window) { | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
$viewer = $request->getUser(); | $viewer = $request->getUser(); | ||||
$form = id(new AphrontFormView()) | $form = id(new AphrontFormView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
▲ Show 20 Lines • Show All 473 Lines • Show Last 20 Lines |