mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-16 15:42:48 +08:00
remove charts from core package
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": "^7.4|^8.0",
|
||||
"asantibanez/livewire-charts": "^2.3",
|
||||
"blade-ui-kit/blade-heroicons": "^0.3",
|
||||
"calebporzio/sushi": "^2.1",
|
||||
"danharrin/date-format-converter": "^0.2.0",
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
@pushonce('filament-scripts:livewire-charts')
|
||||
@livewireChartsScripts
|
||||
@endpushonce
|
||||
|
||||
<div>
|
||||
<x-filament::app-header :title="__('filament::dashboard.title')">
|
||||
<x-slot name="actions">
|
||||
@@ -87,23 +83,6 @@
|
||||
</div>
|
||||
</x-filament::widget>
|
||||
|
||||
<x-filament::widget title="Chart" :columns="2">
|
||||
<x-slot name="settings">
|
||||
<x-filament::dropdown-link button>
|
||||
Chart Setting...
|
||||
</x-filament::dropdown-link>
|
||||
|
||||
<x-filament::dropdown-link>
|
||||
Another Chart Setting...
|
||||
</x-filament::dropdown-link>
|
||||
</x-slot>
|
||||
<div class="h-96">
|
||||
<livewire:livewire-column-chart
|
||||
:column-chart-model="$chart"
|
||||
/>
|
||||
</div>
|
||||
</x-filament::widget>
|
||||
|
||||
<x-filament::widget title="Activity">
|
||||
widget content...
|
||||
</x-filament::widget>
|
||||
|
||||
@@ -3,19 +3,13 @@
|
||||
namespace Filament\Http\Livewire;
|
||||
|
||||
use Livewire\Component;
|
||||
use Asantibanez\LivewireCharts\Models\ColumnChartModel;
|
||||
|
||||
class Dashboard extends Component
|
||||
{
|
||||
public function render()
|
||||
{
|
||||
return view('filament::.dashboard', [
|
||||
'chart' => (new ColumnChartModel())
|
||||
->setTitle('Sample Chart')
|
||||
->addColumn('Column 1', 100, '#f6ad55')
|
||||
->addColumn('Column 2', 200, '#fc8181')
|
||||
->addColumn('Column 3', 300, '#90cdf4'),
|
||||
|
||||
//...
|
||||
])->layout('filament::components.layouts.app');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user