Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/engine/PhabricatorChartRenderingEngine.php
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | public function newChartView() { | ||||
return $chart_view; | return $chart_view; | ||||
} | } | ||||
public function newChartData() { | public function newChartData() { | ||||
$chart = $this->getStoredChart(); | $chart = $this->getStoredChart(); | ||||
$chart_key = $chart->getChartKey(); | $chart_key = $chart->getChartKey(); | ||||
$chart_engine = PhabricatorChartEngine::newFromChart($chart) | |||||
->setViewer($this->getViewer()); | |||||
$chart_engine->buildChart($chart); | |||||
epriestley: This is the other half of the actual change: now, we turn the parameters into a real chart… | |||||
$datasets = $chart->getDatasets(); | $datasets = $chart->getDatasets(); | ||||
$functions = array(); | $functions = array(); | ||||
foreach ($datasets as $dataset) { | foreach ($datasets as $dataset) { | ||||
foreach ($dataset->getFunctions() as $function) { | foreach ($dataset->getFunctions() as $function) { | ||||
$functions[] = $function; | $functions[] = $function; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |
This is the other half of the actual change: now, we turn the parameters into a real chart after loading them out of the database.