public function execute($request)
 {
     $this->data = $this->getGraphService()->getEmployeeCountBySubUnit();
     if (count($this->data) > 0) {
         $pieChart = new PieChart();
         $pieChart->setChartNumber('emp_distribution');
         $pieChart->setWidth(300);
         $pieChart->setHeight(225);
         $pieChart->setStyles(array('margin-top' => '10px'));
         $dataFormatter = new GraphDataFormatter();
         $dataFormatter->setGroupMappings(array('default-label' => '---', 'label-index' => 'name', 'value-index' => 'COUNT'));
         $pieChart->setDataFormatter($dataFormatter);
         $metaDataObject = new GraphMetaData();
         $legend = new GraphLegendData();
         $legend->setLegendDivId('div_legend_pim_employee_distribution');
         $legend->setUseSeparateContainer(true);
         $legend->setLabels($dataFormatter->extractLabels($this->data, 'name'));
         $metaDataObject->setLegend($legend);
         $pieChart->setData($this->data);
         $pieChart->setPropertes(array('show-legend' => true, 'show-labels' => true, 'interactive' => true, 'suffixForValueHover' => 'Employee(s)'));
         $pieChart->setMetaDataObject($metaDataObject);
         $this->chart = $pieChart;
     }
 }