Recommend this page to a friend! |
Classes of Lucas de Oliveira | FusionCharts PHP Class API | README.md | Download |
|
DownloadFusionCharts - API__http://www.fusioncharts.com/__ PHPClassesDescriptionThis package can provide the data to generate graphical charts using the FusionCharts Library. It provides a base class that can generate JSON for rendering several types of charts supported by the FusionCharts taking XML code that defines the parameters of the charts. The package comes also with specialized classes that can generate the necessary XML code with the parameters for several types of charts. Currently it comes with classes for rendering charts of types column, line, plot, pie and pareto. The chart classes provide a fluent interface to define any of the supported parameters like the chart data values, chart size, colors, labels, fonts, and other chart specific parameters. Requirement
Install
Example
// Data from db $months = array('Jan', 'Feb', 'Mar', 'Apr'); $values = array(100, 200, 150, 210); $chart = new ColumnLine('chart-container'); $categories = new Categories(); foreach ($months as $month) {
} $columns = new Columns(); foreach ($values as $value) {
} $chart
// render chart in the index.php
|