How to get the data using dataLoader in amCharts?
问题 I'm using amCharts library (it's a JavaScript library for loading data in charts) to extract the data from mySQL database, and display it using a Stock Chart. I found a complete tutorial here: http://www.amcharts.com/tutorials/your-first-stock-chart/ They use static data that they have created in the code, however I want to use my own data by extracting it from database in JSON format. The PHP file to include: json_encode.php <?php include("data.php"); echo json_encode($rows); ?> The output