Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
funnel.php
1<?php
2
4
6
7
12class Funnel extends PieDiagram
13{
14 const VIEW_KEY = 'funnel';
15
20 public function __construct()
21 {
22 parent::__construct();
23 $this->setLabel(Loc::getMessage('REPORT_FUNNEL_VIEW_LABEL'));
24 $this->setLogoUri('/bitrix/images/report/visualconstructor/view-funnel.jpg');
25 $this->setJsClassName('BX.Report.VisualConstructor.Widget.Content.AmChart.Funnel');
26 }
27
33 public function getCompatibleViewTypes()
34 {
35 $viewTypes = parent::getCompatibleViewTypes();
36 $viewTypes[] = 'pieDiagram';
37 return $viewTypes;
38
39 }
40
41
47 protected function getAmChartType()
48 {
49 return 'funnel';
50 }
51
58 public function handlerFinallyBeforePassToView($dataFromReport)
59 {
60 $result = parent::handlerFinallyBeforePassToView($dataFromReport);
61 $result['depth3D'] = 35;
62 $result['angle'] = 45;
63 $result['valueRepresents'] = 'area';
64 return $result;
65 }
66}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29