Reputation: 1
I have mysql database and I want to create pie chart and the pie chart it should be take the an action based on my database?
I have look around some solution suggest to use google library but i try this but don't want this because i will implement my project offline without internet access
suppose this query
$query2 = "SELECT COUNT(af_student_id) AS total2 FROM assessment_form WHERE job =' yes '";
$query2 = "SELECT COUNT(af_student_MAJOR) AS total2 FROM assessment_form WHERE job =' yes '";
Upvotes: 0
Views: 370
Reputation: 753
You can check Highcharts library or Chart.js library.
Output the data to browser in json format, and render it as a pie chart by using these javascript library.
Include these library in your project so it can be used offline.
Upvotes: 1