This article will show how to create a simple meter 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 along with Intervals array
$p->data = array(array(266)); $p->intervals = array(200,300,400,600);
Step 3: Set Chart type
$p->chart_type = "meter";
Step 4: Render Chart
$out = $p->render("c1");
For complete code, please visit live demo.
How useful was this post?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!