-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datalabel formatter #16
Comments
Hi! We can't use the formatter function in the current version. I have plans to include it in the next version. |
@leandrocfe we need the 'formatter' function. cause when we try to pass the time value in the y-axis it's not showing the y-axis label correctly. |
If it is urgent, you can publish the views and customize what you want. |
Could adding something like this into chart.blade be a viable default alternative?
And in the options array of the widget:
We managed to do it this way, if you think this could be a viable approach I can review with all the other available formats and send a PR. |
hello, is there any updates yet ? thanks |
I fixed myself by changing the view file. In my case i have 4 widgets in a page and i just to need to format currency only for Piechart widget, so i am done the following.
I hope someone need this! |
My fix for latest version goes like this.
|
Since the latest version, the fix from @KostasKostogloy doesn't work anymore, because the init() is gone now from the views... Any updates, when the formatter will be supported or what workaround is suggested now? |
I've similar issue, just publish all blade files using the old ones (before last update), and manually load apexchart asset inside AppServiceProvider using this command
blade files that i've published (using the old ones) And with the old blade files, you can try the old workaround for Datalabel formatter by @KostasKostogloy |
I've submitted a PR for review which adds this functionality. See #55 If you want to use it now, you can simply put the view in |
Thank you so much! ❤️ |
My PR was incorrect. I've taken a different approach, which leaves the view intact and instead updates the distributed JS. To use before being merged you can copy the built JS file to your |
Hey, @RosiersRobin, @flolanger, @VictorCano, @webtamizhan, @aldesrahim Could you try the new version please? Formatter is available here |
Hi,
How can I make use of the datalabel formatter?
I have the following array I return;
As you see, there is a formatter;
But this does not work? How can I achieve this to work?
The text was updated successfully, but these errors were encountered: