Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Applying a Custom Tooltip to a Line Graph Widget - Filament
F
Filament
•
3y ago
ssmusoke
Applying a Custom Tooltip to a Line Graph Widget
I am trying to apply a custom tooltip to a chart following the steps here
https://www.chartjs.org/docs/latest/samples/tooltip/content.html
My options configuration
protected static
?array
$options
=
[
'plugins
'
=
>
[
'tooltip
'
=
>
[
'callbacks
'
=
>
[
'footer
'
=
>
'customFooter
'
]
]
]
]
;
My custom footer function which is included in the blade file that the line graph is included as a livewire component
<script
>
const customFooter
=
(tooltipItems
)
=
>
{
let footerString
=
'
'
;
tooltipItems
.forEach
(function
(tooltipItem
)
{
footerString
= footerString
.concat
(
"
:
"
, tooltipItem
.parsed
.y
)
;
}
)
;
return
'Footer
:
'
+ footerString
;
}
;
<
/script
>
However I get the error in the attached file
, the s
.footer
.apply is not a function
Custom Tooltip Content | Chart.js
Open source HTML5 Charts for your website
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Custom JS for Chart Widgets to build custom tooltip
F
Filament / ❓┊help
3y ago
Applying filter to a custom page
F
Filament / ❓┊help
3y ago
Change tooltip of Chart Widget
F
Filament / ❓┊help
12mo ago
Table inline widget graph
F
Filament / ❓┊help
2y ago