Added helper methods for PieChartModel

This commit is contained in:
asantibanez
2023-07-25 16:28:59 -05:00
parent 2d9bcfe480
commit c5784b0ced
2 changed files with 16 additions and 4 deletions

View File

@@ -44,6 +44,16 @@ class PieChartModel extends BaseChartModel
return $this;
}
public function asPie()
{
return $this->setType('pie');
}
public function asDonut()
{
return $this->setType('donut');
}
public function withOnSliceClickEvent($onSliceClickEventName)
{
$this->onSliceClickEventName = $onSliceClickEventName;