Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/chart/PhabricatorChartStackedAreaDataset.php
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | foreach ($raw_points as $function_idx => $points) { | ||||
$event_list[] = $point; | $event_list[] = $point; | ||||
} | } | ||||
$events[] = $event_list; | $events[] = $event_list; | ||||
} | } | ||||
$wire_labels = array(); | $wire_labels = array(); | ||||
foreach ($functions as $function_key => $function) { | foreach ($functions as $function_key => $function) { | ||||
$label = $function->getFunctionLabel(); | $label = $function->getFunctionLabel(); | ||||
$label->setName(pht('Important Data %s', $function_key)); | |||||
$wire_labels[] = $label->toWireFormat(); | $wire_labels[] = $label->toWireFormat(); | ||||
} | } | ||||
$result = array( | $result = array( | ||||
'type' => $this->getDatasetTypeKey(), | 'type' => $this->getDatasetTypeKey(), | ||||
'data' => $series, | 'data' => $series, | ||||
'events' => $events, | 'events' => $events, | ||||
'labels' => $wire_labels, | 'labels' => $wire_labels, | ||||
Show All 9 Lines |