sfOpenFlashChart
Enviado por clbustos el Vie, 13/02/2009 - 16:58.
Clasificado en:
This plugin works as wrapper for Open Flash Chart's PHP5 classes, and flash and javascript files.
You can see examples here
Installation
Install the plugin
> php symfony plugin-install http://php.apsique.com/files/sfOpenChartFlash-0.1.0.tgz
Clear the cache
> php symfony cc
Usage
On the template
- $width=500;
- $height=300;
- $url_of_data=url_for('module/createChart?id=1');
- $use_swfobject=true;
- open_flash_chart_object($width,$height,$url_of_data,$use_swfobject);
- ?>
On actions.class.php
- function executeCreateChart() {
- $title = new OFC_Elements_Title('Your id '.$this->getRequestParameter('id'));
- $line_dot = new OFC_Charts_Line();
- $line_dot->set_values(array(9,8,7,6,5,4,3,2,1));
- $line_dot->set_colour('#ff0000');
- $chart = new OFC_Chart();
- $chart->set_title( $title );
- $chart->add_element( $line_dot );
- echo $chart->toPrettyString();
- exit;
- }
Changelog
2009-02-13 | 0.1.0 Alpha
- Initial public release.
Releases
| Official releases | Fecha | Tamaño | Links | Estado | |
|---|---|---|---|---|---|
| 0.1.0 | 2009-Feb-13 | 288.86 KB | Recommended for Experimentales | ||
Resources
Support
- 927 lecturas

Enviar un comentario nuevo