Home › forums › Chart Support › Get data with Ajax on a pie chart
Tagged: AJAX, php
I use php pie chart and after searching on the internet, I’ve seen that the ajax request.responseText contains which is echo on my php page, but instead of displayig the chart, I’ve got a 0%. (see http://prnt.sc/rwvfxy).
But when I apply like the example, which a echo in my script, it works, but if I do an ajax request which is echo the same json output with json_encode($dataPoints, JSON_NUMERIC_CHECK) it doesn’t.
Thank you for response.
It seems to be working fine. Please take a look at this gallery page for an example on creating a chart using JSON data in PHP.
If you are still facing the issue, kindly create a sample project reproducing the issue you are facing along with your sample data and share it with us over Google-Drive or Onedrive so that we can look into the code, understand the scenario better and help you out.
You must be logged in to reply to this topic.