Chart scales ticks
Setup a callback
Solution:Jump to solution
@CodeWithDennis Have you tried returning RAwJs instead of php array?
This is working for me .
As mentioned in the docs : https://filamentphp.com/docs/3.x/widgets/charts#setting-chart-configuration-options
```php
use Filament\Support\RawJs;...
9 Replies
According to the documention of ChartJS
Current im trying to do the same in the Widget class: (which is not working)
@CodeWithDennis Stuck with the same problem. Did you figure it out?
Not supported i think, i switched to the apex plugin
Return a RawJS object as explained here: https://filamentphp.com/docs/3.x/widgets/charts#setting-chart-configuration-options
I got it working, I wanted to customize the ticks stepsize
Yup, once in writing raw js you can just follow the ChartJs docs.
I think when you try to add a function to add a prefix or affix to the value that is when it won't work. (Which was my issue)
Solution
@CodeWithDennis Have you tried returning RAwJs instead of php array?
This is working for me .
As mentioned in the docs : https://filamentphp.com/docs/3.x/widgets/charts#setting-chart-configuration-options
I can't remember, i read there was an issue with it but they might have fixed it since then.
Not using it anymore but thanks for the solve!