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

  1.  <?php
  2.   $width=500;
  3.   $height=300;
  4.   $url_of_data=url_for('module/createChart?id=1');
  5.   $use_swfobject=true;
  6.   open_flash_chart_object($width,$height,$url_of_data,$use_swfobject);?>
  7.   ?>

On actions.class.php

  1.  <?php
  2.   function executeCreateChart() {
  3.   $title = new OFC_Elements_Title('Your id '.$this->getRequestParameter('id'));
  4.   $line_dot = new OFC_Charts_Line();
  5.   $line_dot->set_values(array(9,8,7,6,5,4,3,2,1));
  6.   $line_dot->set_colour('#ff0000');
  7.   $chart = new OFC_Chart();
  8.   $chart->set_title( $title );
  9.   $chart->add_element( $line_dot );
  10.   echo $chart->toPrettyString();
  11.   exit;
  12.   }
  13.  ?>

Changelog

2009-02-13 | 0.1.0 Alpha

  • Initial public release.

Releases

Official releasesFechaTamañoLinksEstado
0.1.02009-Feb-13288.86 KBRecommended for ExperimentalesThis is currently the recommended release for Experimentales.

Resources

Support

Enviar un comentario nuevo

El contenido de este campo se mantiene como privado y no se muestra públicamente.
If you have a Gravatar account, used to display your avatar.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Saltos automáticos de líneas y de párrafos.

Más información sobre opciones de formato