+ Start a Discussion
prakash chaudharyprakash chaudhary 

constructor of Fusion charts in VFPage ?

Please can anybody tell me that what I have to write for the below line to use that in Visualforce page ?


var myChart = new FusionCharts("Column3D.swf",  "myChartId", "600", "400", "0", "1" );


Please reply me how can write this line in visualforce ?

Srividya SharmaSrividya Sharma

I haven't tried it, but you can try something like this:


<apex:page id=”myPage”>

<apex:pageBlock id=”myBlock”>

<apex:outputText id=”myText”/>

<script> var myChart = new FusionCharts("Column3D.swf",  "myChartId", "600", "400", "0", "1" ); </script>



prakash chaudharyprakash chaudhary

Yaa Srividya, are you sure that it will work ?

Since the red mark indicate that it accept Column3D.swf file is in same directory that is why we did not provided full path but salesforce is cloud computing environment so that we cant reference our local machine file onto server bcoz of that i posted my prob here.

Srividya SharmaSrividya Sharma

I presumed that you have the swf file on server. If you do not, then I have no further ideas here. 


Lets hope someone else can help out.

prakash chaudharyprakash chaudhary

Since in Salesforce, there is an option of static resources where we upload our static files so can u help me in that.

Since I uploaded my file there & using that file by using,

{!$Resource.Filename} but it do not call that file.

So please help me if u can...

Thnx srividya..