public function testChts()
 {
     $this->assertEquals($this->chart->hasChts(), false);
     $this->assertEquals($this->chart->computeChts(), '000000,12');
     // setTitleColor()
     $this->chart->setTitleColor('00ff00');
     $this->assertEquals($this->chart->computeChts(), '00ff00,12');
     // setTitleSize()
     $this->chart->setTitleSize('20');
     $this->assertEquals($this->chart->computeChts(), '00ff00,20');
     // chts is null if no title
     $q = $this->chart->getQuery();
     $this->assertEquals(isset($q['chts']), false);
     // title make chts appears
     $this->chart->setTitle('foobar');
     $q = $this->chart->getQuery();
     $this->assertEquals(isset($q['chts']), true);
     $this->assertEquals($q['chts'], '00ff00,20');
 }