Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/chart/PhabricatorChartStackedAreaDataset.php
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | protected function newWireFormat(PhabricatorChartDataQuery $data_query) { | ||||
foreach ($raw_points as $function_idx => $points) { | foreach ($raw_points as $function_idx => $points) { | ||||
$event_list = array(); | $event_list = array(); | ||||
foreach ($points as $point) { | foreach ($points as $point) { | ||||
$event_list[] = $point; | $event_list[] = $point; | ||||
} | } | ||||
$events[] = $event_list; | $events[] = $event_list; | ||||
} | } | ||||
$wire_labels = array(); | |||||
foreach ($functions as $function_key => $function) { | |||||
$label = $function->getFunctionLabel(); | |||||
$label->setName(pht('Important Data %s', $function_key)); | |||||
amckinley: Intended placeholder? | |||||
Done Inline ActionsYeah, I think this gets a real name in a followup. epriestley: Yeah, I think this gets a real name in a followup. | |||||
$wire_labels[] = $label->toWireFormat(); | |||||
} | |||||
$result = array( | $result = array( | ||||
'type' => $this->getDatasetTypeKey(), | 'type' => $this->getDatasetTypeKey(), | ||||
'data' => $series, | 'data' => $series, | ||||
'events' => $events, | 'events' => $events, | ||||
'color' => array( | 'labels' => $wire_labels, | ||||
'blue', | |||||
'cyan', | |||||
'green', | |||||
), | |||||
); | ); | ||||
return $result; | return $result; | ||||
} | } | ||||
} | } |
Intended placeholder?