- http://www.chartphp.com //* @version 2.0 //* @license: see license.txt included in package // include_once("../charts4php/config.php"); //include_once(CHARTPHP_LIB_PATH . "/inc/chartphp_dist.php"); include_once("/lib/inc/chartphp_dist.php"); $p = new chartphp(); //$p->data_sql = "select strftime('%Y-%m',o.orderdate) as Year, sum(d.quantity) as 'Sales 1996', sum(d.quantity)+1000 as 'Sales 1997', sum(d.quantity)+2000 as 'Sales 1998' //from `order details` d, orders o //where o.orderid = d.orderid //group by strftime('%Y-%m',o.orderdate) limit 50"; $p->chart_type = "line"; // Common Options $p->title = "Sales Summary"; $p->xlabel = "Month"; $p->ylabel = "Sales"; // $p->shape = "linear"; // $p->show_point_label = true; $out = $p->render('c1'); ?>