Added TreeMap chart

- Added tests
This commit is contained in:
asantibanez
2022-02-14 15:38:59 -05:00
parent 4a74606e4d
commit aa94016b6e
10 changed files with 232 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
<?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');
}
}