AnsweredAssumed Answered

How do I set a parameter for a custom gauge chart?

Question asked by sikander Hayat on May 16, 2014
Latest reply on Aug 26, 2014 by Dhruv Singh
Hy,
I want to display chart on deshlet with chart type  gauge chart, I am facing too much problem , How set parameter for this type of chart. No any article or example of this type of chart
I try it but its shows like this
 

How i can handle it any example code
$sugarChart->setProperties('', '', 'gauge chart');
        $sugarChart->base_url = array(
            'module' => 'Cases',
            'action' => 'index',
            'query' => 'true',
            'searchFormTab' => 'advanced_search',
            );

        $sugarChart->url_params = array();
        $sugarChart->group_by = $this->constructGroupBy();

      $sugarChart->setData($this->getChartData($this->constructQuery()));
 
             $phases[0] = array( 'start' => 0, 'end' =>10, );
                $phases[1] = array( 'start' => 20, 'end' => 30, );
                $phases[2] = array( 'start' => 40, 'end' => 50, );
                $phases[3] = array( 'start' => 60, 'end' => 70, );   
               

               $sugarChart->setDisplayProperty('gaugePhases', $phases);
              $sugarChart->setDisplayProperty('gaugeTarget', '100');

No idea how set value gauge  any small example for gauge  chart

Kindly help me




Outcomes