Files
livewire-charts/src/Charts/LivewireTreeMapChart.php
asantibanez aa94016b6e Added TreeMap chart
- Added tests
2022-02-14 15:38:59 -05:00

26 lines
549 B
PHP

<?php
namespace Asantibanez\LivewireCharts\Charts;
use Asantibanez\LivewireCharts\Models\TreeMapChartModel;
use Livewire\Component;
/**
* Class LivewireTreeMapChart
* @package Asantibanez\LivewireCharts\Charts
*/
class LivewireTreeMapChart extends Component
{
public $treeMapChartModel;
public function mount(TreeMapChartModel $treeMapChartModel)
{
$this->treeMapChartModel = $treeMapChartModel->toArray();
}
public function render()
{
return view('livewire-charts::livewire-tree-map-chart');
}
}