Abu | Free PHP Chart & Graph http://www.chartphp.com HTML5 Chart & Graph for Web & Mobile using PHP Sun, 29 Oct 2017 10:38:01 +0000 en-US hourly 1 https://wordpress.org/?v=4.8.3 85830749 Creating a Line Chart using PHP http://www.chartphp.com/how-to-create-line-chart-php/ Mon, 30 Mar 2015 11:49:30 +0000 http://www.chartphp.com/?p=519 data = array(array(3,7,9,1,4,6,8,2,5),array(5,3,8,2,6,2,9,2,6)); ').' ‘ Step 3: Set Chart type ‘ '.wch_stripslashes('$p->chart_type = "line"; ').' ‘ Step 4: Render Chart […]]]> This article will show how to create a simple line chart using Charts 4 PHP Framework.

Step 1: Include Charts 4 PHP Library

'.wch_stripslashes('include("../../lib/inc/chartphp_dist.php");
$p = new chartphp();
').'


Step 2: Configure Data array

'.wch_stripslashes('$p->data = array(array(3,7,9,1,4,6,8,2,5),array(5,3,8,2,6,2,9,2,6));
').'


Step 3: Set Chart type

'.wch_stripslashes('$p->chart_type = "line";
').'


Step 4: Render Chart

'.wch_stripslashes('$out = $p->render("c1");
').'


For complete code, please visit live demo.

]]>
519