Welcome Guest, Not a member yet? Register   Sign In
Graphing with FusionCharts
#1

[eluser]Jbeasley6651[/eluser]
Hello,

I am trying to get fusioncharts (free flash charts) working in code igniter.

I have followed an offsite tutorial and have gotten the graphing to work, except i can't assign a name to a value. I know i have to pass a name, but i don't know how to do it, i have tried many things, none of which i can get to work.

Screen Shot Here

current working controller that produces the graph in the image

Code:
function mychart(){
        $this->load->plugin( 'fusion' );
        $FC =  FusionCharts("Column3D","520","200");
        $arrData = array(200, 400, 200, 300);  
        foreach( $arrData as $i=>$arrData){  
        $FC->addChartData( $arrData);  
        var_dump($arrData, $i);
         }  
        $strParam="numberSuffix=%; formatNumberScale=0; decimalPrecision=0; xAxisName=Integrated Process Average Score; animation=1";
        $FC->setChartParams($strParam);
        $FC->setChartMessage("ChartNoDataText=Chart Data not provided; PBarLoadingText=Please Wait.The chart is loading...");
        //my changes start here
        echo '[removed][removed]';
        echo $FC->renderChart(false,false);
        
        $this->load->view('chart/chart_view');
    }

I really need to know how to pass the name with the value.

You can view the library below, it's 2000 lines so i did a paste instead of putting it here. BTW, do we have a paste bin for CI?
Code Pasted Here

Thanks in advance,

Jbeasley


Messages In This Thread
Graphing with FusionCharts - by El Forum - 07-07-2009, 11:18 AM
Graphing with FusionCharts - by El Forum - 07-07-2009, 12:00 PM
Graphing with FusionCharts - by El Forum - 07-07-2009, 12:21 PM
Graphing with FusionCharts - by El Forum - 07-19-2009, 05:17 PM
Graphing with FusionCharts - by El Forum - 07-19-2009, 06:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB