Пример #1
0
 public function testGetValueAxis()
 {
     $valueAxis = $this->chart->valueAxis();
     $this->assertInstanceOf('AmCharts\\Chart\\Axis\\Value', $valueAxis);
 }
Пример #2
0
 /**
  * Returns params
  * 
  * @return array 
  */
 public function getParams()
 {
     $params = parent::getParams();
     $paramKeys = array('angle', 'depth3D');
     foreach ($paramKeys as $key) {
         if (isset($this->{$key})) {
             if ($this->{$key} instanceof Setting\Alpha) {
                 $params[$key] = $this->{$key}->getValue();
             } else {
                 $params[$key] = $this->{$key};
             }
         }
     }
     if (isset($this->cursor)) {
         $params += $this->cursor->toArray();
     }
     if (isset($this->margin)) {
         $params += $this->margin->toArray();
     }
     return $params;
 }