/**
  * @param array $data
  * @param GraphQuery $query
  * @return DataTable
  */
 protected function fillWithResponseData(array $data, ChartQuery $query)
 {
     $dateTimeFormat = $query->getChartDatetimeFormat();
     $table = $this->DataTable();
     $table->setTimeZone(date_default_timezone_get());
     $table->setDateTimeFormat($dateTimeFormat);
     $table->addDateColumn($query->getChartTimeLabel());
     $table->addNumberColumn($query->getChartValueLabel());
     foreach ($data as $coordinates) {
         $table->addRow(array(date($dateTimeFormat, $coordinates['time']), $coordinates['value']));
     }
     return $table;
 }