I would like to avoid the anoying google chart message when the query returns no data...
Any idea?
Thanks in advance!
Hi Cuto!
Try like this:
#if (!$result.isEmpty()) ## do your normal template stuff here <script> PocketQuery.chart('BarChart'); </script> #else ## do what you want to if the result is empty <p>The result is empty so there is no chart</p> #end
Regards, Felix
Excellent! It works!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.