Part of the EllisLab Network
   
2 of 2
2
OpenFlashChart With CI
Posted: 15 July 2009 04:00 AM   [ Ignore ]   [ # 16 ]  
Summer Student
Total Posts:  2
Joined  07-15-2009

I havea a problem with swf

Open Flash Chart
IO ERROR
Loading test data
Error 
#2032
This is the URL that I tried to open:../../data-files/candle.txt 

My controller

function Welcome()
    
{
        parent
::Controller();    
        
        
$this->load->library('graph');
        
$this->load->helper('open_flash_chart'); 
    
}
    
    
function index()
    
{
        $this
->load->view('welcome_message');
    
}
    
    
function tarta(){
        $cantidad 
= array('50′,'3′,'8′,'5′);
        
$bp_label = array('uno','dos','tres','cuatro');
        
$this->graph->pie(80,'#505050′,'{font-size12pxcolor#404040}');
        
$this->graph->pie_values($cantidad,$bp_label);
        
$this->graph->pie_slice_colours( array('#d9db35′,'#487daf','#d00000′,'#4ae331′) );
        
$this->graph->title('Mi título','{font-size:14px; color: #7F7772}' );
        echo 
$this->graph->render();
    

my view

<html><head></head><body>
<?=open_flash_chart_object(500,250,site_url('welcome/tarta'),false,base_url())?>
</body></html

thanks.

Profile
 
 
Posted: 29 October 2009 04:10 AM   [ Ignore ]   [ # 17 ]  
Grad Student
Avatar
Rank
Total Posts:  32
Joined  03-07-2007

See this post for Open Flash Chart V2 in CI.

cheers,
Thomas

Profile
 
 
Posted: 27 July 2010 11:16 PM   [ Ignore ]   [ # 18 ]  
Grad Student
Rank
Total Posts:  39
Joined  07-15-2010

- Copy the php-ofc-library/open-flash-chart.php file to system/application/library/ and then rename it to graph.php

- Copy the open-flash-chart.swf file to assets/swf/

- Copy the js/swfobject.js to assets/js/

- Edit file graph.php, find this following lines :

$this->js_path = ‘js/’;
  $this->swf_path = ‘’;

i not found this line

this is my version of openflashchart

———Open Flash Chart version 1.9.7——————-

Profile
 
 
   
2 of 2
2