Jump to content


The Pure Javascript Functioncharts Need The Swf File?


  • Please log in to reply
5 replies to this topic

#1 Simple.Chen

Simple.Chen

    Junior Member

  • Members
  • PipPip
  • 20 posts

Posted 21 May 2012 - 06:54 AM

I can remove the swf file when I render the chart on pure javascript ?



#2 Swarnam

Swarnam

    Supreme Being

  • Moderators
  • 727 posts

Posted 21 May 2012 - 08:09 AM

Hi,

While rendering the charts in JavaScript mode, you may not retain the SWF file.

#3 Simple.Chen

Simple.Chen

    Junior Member

  • Members
  • PipPip
  • 20 posts

Posted 21 May 2012 - 08:40 AM

Thank you very much for Forum Guru 's quickly reply.
there is another question:

if i write the code like this :

var myChart = new FusionCharts({ width: '400', height: '300', debugMode: false });

not add the swfUrl property ,there will occur a error "Chart type not supported."
How I can write my code to assign the Chart type ?

wating for your reply...

#4 Sanjukta

Sanjukta

    Supreme Being

  • Administrators
  • 1926 posts

Posted 21 May 2012 - 09:28 AM

Hi,

Please note that with respect to your SWF usage related query on JavaScript charts, please note that in case of the HTML 5 charts, the name and path of the SWF file needs to be mentioned because it is from the SWF files that the JavaScript aliases are picked up in order to render the charts in non-Flash browsers.

The SWF files used and mentioned, does not imply that it is to be loaded during the iPad/iPhone/non Flash Player supported browsers rendering, since we do not load the SWF natively. Instead, we actually pick up a reference of the relevant JavaScript, from the SWF files, needed to render the charts in non-Flash browsers.

The JavaScript aliases for the corresponding SWF files can be found with the help of the following link.
Ref.- http://docs.fusionch.../ChartList.html

The format of code that you would need to write while calling the JavaScript aliases of the SWF files can be written in the following way:
Ex:
var myChart = new FusionCharts({ type : "Column3D", id : "myChartId", renderAt : "chartContainer", dataSource : "Data.xml" });

For further details on the chart parameters and the constructor method of the FusionCharts JS class, please refer to the following link.
http://docs.fusionch...tml#constructor

Hope this helps. :)
Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Thanks,
Sanjukta

Follow us @Twitter!

#5 Simple.Chen

Simple.Chen

    Junior Member

  • Members
  • PipPip
  • 20 posts

Posted 21 May 2012 - 09:33 AM

Thank you very much !
it work now !

#6 Sumedh

Sumedh

    Supreme Being

  • Administrators
  • 1946 posts
  • LocationBangalore

Posted 21 May 2012 - 09:44 AM

Thank you very much !
it work now !


Posted Image
Thanks,
Sumedh

Follow us @Twitter!