Skip to content

Commit

Permalink
Merge pull request #75 from anfen93/master
Browse files Browse the repository at this point in the history
Fix option access
  • Loading branch information
miloschuman committed Aug 22, 2019
2 parents bedfc4b + 16633b8 commit 260b946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Highcharts.php
Expand Up @@ -84,7 +84,7 @@ public function run()
// merge options with default values
$defaultOptions = ['chart' => ['renderTo' => $this->id]];
$this->options = ArrayHelper::merge($defaultOptions, $this->options);
$this->container = $this->options->chart->renderTo;
$this->container = $this->options['chart']['renderTo'];

array_unshift($this->scripts, $this->baseScript);
$this->registerAssets();
Expand Down

0 comments on commit 260b946

Please sign in to comment.