Web aplication need nowadays to have charts application. Why we require chart in our application ?. Of course, to visualize data more user-friendly.
There are many free chart libraries available to solve our problems related data visulization in chart form on web application. It is PHP/SWF Charts as one option.
There are many free chart libraries available to solve our problems related data visulization in chart form on web application. It is PHP/SWF Charts as one option.
How to embed PHP/SWF Charts in PHP file ?
Make sure you have downloaded PHP/SWF Charts in advance and place it anywhere on your web server. In this tutorial, we try make an aplication to display the number of students in each department.
We have data in a table like this :
Based on the table, we create a file tes.php contains code:
Now, to display data in chart form, we create a file berita.php. It calls tes.php and translate it in chart with dimension 400 x 250 pixels.
The output looks like this:
If you have notice message like this :
Undefined index :HTTPS in Drive:\web_server_address\charts.php on line 17
Open chart.php, comment line 17 and add code below in file chart.php :
Rerun file berita.php, it should be a notice message have been disappeared.
0 Response to "SWF Charts Undefined index HTTPS"
Posting Komentar