I'm trying to return a jsonified SQL query to javascript to display in
google charts API. I can get the chart to display data when its manually
entered in the code, but when I try to pass my JSON data in by AJAX I get
nothing...just a blank page.
I have the data formatted correctly, and returni
20%2Bat%2B10.07.01%2BPM%2B-%2BEdited.png>
On Friday, April 20, 2018 at 9:55:32 PM UTC-5, Michael Syring wrote:
>
> I was hoping to pass the formatted JSON data to the HTML template.
> I have all the chart code done, and it works with manually entered data,
> but I can't seem to
X/JSON approach if I can.
On Friday, April 20, 2018 at 12:35:11 PM UTC-5, Cheryl Evans wrote:
>
> I don't know if this helps at all, but javascript has a JSON.stringify
> method
>
> On Fri, Apr 20, 2018 at 11:57 AM, Michael Syring > wrote:
>
>> The last line was c
The last line was cut off and I couldn't edit the post...it should read:
`return render_template("charting.html"), jsonData`
On Friday, April 20, 2018 at 10:17:05 AM UTC-5, Michael Syring wrote:
>
> OK, I think I have the data formatted correctly, and returning
> json
alories
]);
});
drawChart();
}
// draw chart
$(window).resize(drawChart);
function drawChart() {
chart.draw(data, options);
}
});
On Wednesday, Apri
I have looked over the other questions addressing this, but they don't
answer my questions specifically. I am trying to use data returned from SQL
in Flask, and passing it to the Google Charts API. It's a basic
weight/calorie tracker, and I need to return date and weight for the chart.
My 'user