So I have a set of data that needs to be displayed on the admin dashboard. I decided to use laravel charting package ConsoleTvs Charts by Erik Campobadal.
I am using the package above to create charts directly from the database, the issue is, within my table (user's table for example) there are columns with NULL value.
How do I ignore this null values and represent only columns with real values on my chart?
`
$chart_print_media = Charts::database(User::all(), 'pie', 'highcharts')
->title('Print Media Campaign')
->dimensions(450, 300)
->groupBy('print_media',null);`
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2rzVGuI
via IFTTT
Aucun commentaire:
Enregistrer un commentaire