K-charts
kozik K-charts is PHP chart library (with LGPL license version 2.1). It can create:
- horizontal/vertical bar charts
- pie charts
- line charts
It is based on libchart by Jean-Marc Trémeaux (version 1.1). More information about my modifications of libchart’s code you can find in ChangeLog.
Download: k-charts-1.2.0.tar.bz2 (stable)
Documentation: complete API documentation, ChangeLog, TODO
How to use:
<?php
include "k-charts.php";
$chart = new VerticalChart(); // Create new vertical bar chart
$chart->add_point(new Point("Jan 2005", 273)); // Add data
$chart->add_point(new Point("Feb 2005", 421)); // Add data
$chart->add_point(new Point("March 2005", 642)); // Add data
$chart->set_title("Monthly usage for www.example.com"); // Add title
$chart->render("generated/demo1.png"); // Output chart to file
?>
Requirements:
- PHP 5, compiled with:
- GD 2 or newer
- FreeType 2 or newer
Wysłano w Projekty - komputerowe | Tags: open-source, programowanie, projekty |
