Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/controller/PhabricatorFactChartController.php
Show All 17 Lines | $functions[] = id(new PhabricatorFactChartFunction()) | ||||
->setArguments(array('tasks.count.create')); | ->setArguments(array('tasks.count.create')); | ||||
$functions[] = id(new PhabricatorFactChartFunction()) | $functions[] = id(new PhabricatorFactChartFunction()) | ||||
->setArguments(array('tasks.open-count.create')); | ->setArguments(array('tasks.open-count.create')); | ||||
$x_function = id(new PhabricatorXChartFunction()) | $x_function = id(new PhabricatorXChartFunction()) | ||||
->setArguments(array()); | ->setArguments(array()); | ||||
$functions[] = id(new PhabricatorConstantChartFunction()) | |||||
->setArguments(array(360)); | |||||
$functions[] = id(new PhabricatorSinChartFunction()) | $functions[] = id(new PhabricatorSinChartFunction()) | ||||
->setArguments(array($x_function)); | ->setArguments(array($x_function)); | ||||
list($domain_min, $domain_max) = $this->getDomain($functions); | list($domain_min, $domain_max) = $this->getDomain($functions); | ||||
$axis = id(new PhabricatorChartAxis()) | $axis = id(new PhabricatorChartAxis()) | ||||
->setMinimumValue($domain_min) | ->setMinimumValue($domain_min) | ||||
->setMaximumValue($domain_max); | ->setMaximumValue($domain_max); | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |