I create query in laravel 5.6
I need print json array in Jquery.
Return query in laravel is:
[
{
"day": 19,
"count": 1
},
{
"day": 18,
"count": 3
}
]
Script code is:
var chart = AmCharts.makeChart( "chartdiv", {
"type": "serial",
"theme": "light",
"dataProvider": [
{
"day": 19,
"count": 1
},
{
"day": 18,
"count": 3
}
].reverse(),
.
.
.
.
I place in Jquery code:
var chart = AmCharts.makeChart( "chartdiv", {
"type": "serial",
"theme": "light",
"dataProvider": [ ].reverse(),
.
.
.
.
But this code is not work...
How to issue this problem?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2HbLOCG
via IFTTT
Aucun commentaire:
Enregistrer un commentaire