5 values is the max limit in the free version of PHP Charts.
Purchase PHP Charts Pro at www.phpscripts.se to load endless number of values.
Price is only 17$ (tax included).
มันให้ซื้อหรือเปล่า หรือว่าเราทำผิด
Code (PHP)
<?php
/* Define the path to chartclasses.php.
It must be changed and relative to where you have extracted the phpcharts files.
In most cases it would be: define("CHARTS_SOURCE", "phpcharts/"); */
define("CHARTS_SOURCE", "");
include(CHARTS_SOURCE."chartclasses.php");
$objChart = new Chart(200, 200, "chart1");
$objChart->AddValue(10, 20);
$objChart->AddValue(20, 60);
$objChart->AddValue(30, 40);
$objChart->AddValue(40,25);
$objChart->CreateChartImage(BAR_CHART);
//$objChart->CreateChartImage(LINE_CHART);
?>
<html>
<body>
<img src="chart1.png">
</body>
</html>