Exemple #1
0
 /**
  * Stores a chart in the volcano datastore.
  *
  * @param  \Khill\Lavacharts\Charts\Chart $chart Chart to store in the volcano.
  * @return boolean
  */
 public function storeChart(Chart $chart)
 {
     $this->charts[$chart->getType()][(string) $chart->getLabel()] = $chart;
     return true;
 }
 public function __construct(Chart $chart, $code = 0)
 {
     $message = $chart::TYPE . '(' . $chart->getLabel() . ') has no DataTable.';
     parent::__construct($message, $code);
 }