This article will show how to create a simple pie chart using Charts 4 PHP Framework. Step 1: Include Charts 4 PHP Library include("../../lib/inc/chartphp_dist.php"); $p = new chartphp(); Step 2: Configure Data array $p->data = array(array( array('Heavy Industry',...
This article will show how to create a simple donut chart using Charts 4 PHP Framework. Step 1: Include Charts 4 PHP Library include("../../lib/inc/chartphp_dist.php"); $p = new chartphp(); Step 2: Configure Data array $p->data = array(array( array('Mango',6),...
This article will show how to create a simple bar chart using Charts 4 PHP Framework. Step 1: Include Charts 4 PHP Library include("../../lib/inc/chartphp_dist.php"); $p = new chartphp(); Step 2: Configure Data array $p->data = array( array( array("2010/12",48.25),...
This article will show how to create a simple area chart using Charts 4 PHP Framework. Step 1: Include Charts 4 PHP Library include("../../lib/inc/chartphp_dist.php"); $p = new chartphp(); Step 2: Configure Data array $p->data = array( array( array("Jan",348.25),...
This article will show how to create a mySQL driven line chart using Charts 4 PHP Framework. Step 1: Configure Database connectivity in config.php define("CHARTPHP_DBTYPE","pdo"); define("CHARTPHP_DBHOST","mysql:host=localhost;dbname=testdb");...