© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Passing a record to a chart - Filament
F
Filament
•
15mo ago
•
35 replies
Jordy
Passing a record to a chart
I want to pass a record to a ChartWidget
, to base the data of of that record
.
However I cannot add a parameter to the mount method because it must be compatible to the parent ChartWidget class that doesnt accept any params
.
.
Solution
whats wrong with
@livewire(GrainChart::class, ['record' => $this->record])
@livewire(GrainChart::class, ['record' => $this->record])
Jump to solution
Filament
Join
A powerful open-source UI framework for Laravel • Build and ship apps & admin panels fast with Livewire
20,181
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Injecting model/record into a chart
F
Filament / ❓┊help
16mo ago
Passing record to resource create page
F
Filament / ❓┊help
2y ago
Passing the current record to an Action
F
Filament / ❓┊help
3y ago
Chart retunrs first record only... why?
F
Filament / ❓┊help
3y ago