phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Chart: How to Build Wonderfull PHP - Flash Chart

Tag: Flash, Chart   Category: PHP Classes
post: 10 Nov 2007 read: 1,643


I find a wonderfull php-flash chart. You can create animation chart by easy way.

You can download the library at http://www.manii.us. Ok, I will show basic chart creating with this library.

  1. Download php/swf chart at http://www.manii.us.
  2. Extract to your web server directory. Assuming, you put within C:\AppServ\www\test\chart.
  3. Create "sample.php" within C:\AppServ\www\test\chart and enter following code:
    
    <?php
    
    //include charts.php to access the SendChartData function
    include "charts.php";
    
    $chart['chart_data'] = 
    array(
    array("","January","February","March","April"),
    array("Apple",20,25,34,50),
    array("Banana",34,35,35,20),
    array("Mango",43,25,42,55)
    );
    
    SendChartData ($chart);
    
    ?>
    
  4. Create "test.php" within C:\AppServ\www\test\chart and enter following code:
    
    <HTML>
    <BODY bgcolor="#FFFFFF">
    
    <?php
    
    //include charts.php to access the InsertChart function
    include "charts.php";
    
    echo InsertChart ( "charts.swf", "charts_library" ,
     "sample.php", 400, 250 )
    ?>
    
    </BODY>
    </HTML>
    

Point your browser to http://localhost/test/chart/test.php.



Update: correct site: http://www.maani.us/


Series this article:
Chart: How to Build Wonderfull PHP - Flash Chart
Chart: How to Build Cool Animation Real Time Chart

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

1 Responses to Chart: How to Build Wonderfull PHP - Flash Chart:

here you are including chart.php.
can u give me the chart.php source code

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting