Added TreeMap chart
- Added tests
This commit is contained in:
25
src/Charts/LivewireTreeMapChart.php
Normal file
25
src/Charts/LivewireTreeMapChart.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user