Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/engine/PhabricatorChartRenderingEngine.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | public function newChartView() { | ||||
$chart_key = $chart->getChartKey(); | $chart_key = $chart->getChartKey(); | ||||
$chart_node_id = celerity_generate_unique_node_id(); | $chart_node_id = celerity_generate_unique_node_id(); | ||||
$chart_view = phutil_tag( | $chart_view = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'id' => $chart_node_id, | 'id' => $chart_node_id, | ||||
'style' => 'background: #ffffff; '. | 'class' => 'chart-hardpoint', | ||||
'height: 480px; ', | )); | ||||
), | |||||
''); | |||||
$data_uri = urisprintf('/fact/chart/%s/draw/', $chart_key); | $data_uri = urisprintf('/fact/chart/%s/draw/', $chart_key); | ||||
Javelin::initBehavior( | Javelin::initBehavior( | ||||
'line-chart', | 'line-chart', | ||||
array( | array( | ||||
'chartNodeID' => $chart_node_id, | 'chartNodeID' => $chart_node_id, | ||||
'dataURI' => (string)$data_uri, | 'dataURI' => (string)$data_uri, | ||||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |