Fixed property access

This commit is contained in:
asantibanez
2024-08-22 13:04:12 -05:00
parent b182546766
commit c30c408fe2
2 changed files with 6 additions and 1 deletions

View File

@@ -15,6 +15,11 @@ trait HasTitle
return $this;
}
public function getTitle()
{
return $this->title;
}
protected function initTitle()
{
$this->title = $this->defaultTitle();

View File

@@ -33,7 +33,7 @@ class TreeMapChartModel extends BaseChartModel
public function addBlock($title, $value, $extras = [])
{
return $this->addSeriesBlock($this->title, $title, $value, $extras);
return $this->addSeriesBlock($this->getTitle(), $title, $value, $extras);
}
public function addSeriesBlock($seriesName, $title, $value, $extras = [])