Sign in to follow this  
denisagui

Javascript Chart Path And Filename On Jsf

Recommended Posts

Hi folks!

 

i have a doubt about path and filename for swfFilename when i'll generate javascript chart, if i generate a Flash chart, i juse this code:

 

generate flash chart

 

<fc:render chartId="yearComparative"
		filename="../FusionCharts/MSLine.swf"] width="100%" height="100%"
	debugMode="false" registerWithJS="false" xml="#{lineMB.stringXml}" /> 

 

 

i wonder how i can create a pure javascript chart passing a path and chart name manualy for swfFilename.

i thought in this code:

 

generate javascript ????

<fc:render chartId="yearComparative"
		swfFilename="????" width="100%" height="100%"
	debugMode="false" registerWithJS="true" renderer="javascript" xml="#{lineMB.stringXml}" /> 

 

another doubt about javascript files needed to generate pure javascript charts... in my project are arranged as follows form:

 

FusionCharts.js,

FusionCharts.HC.js,

FusionCharts.jqueryplugin.js,

jquery.min.js,

FusionChartsExportComponent.js.

 

these files are really needed ? is missing some ?

 

 

tnks for all...

Edited by denisagui

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

You may use the same line of code to render JavaScript charts, as well.

 

JavaScript charts do not use the SWF files, however they need the name of the chart(SWF file) to render the charts.

 

Hence, in order to maintain uniformity, you may use the same line of code, however, internally the charting engine finds the JavaScript Chart Alias and renders the chart.

 

You may also use the chart aliases directly.

 

For JavaScript Chart Aliases you may refer to the link below,

http://docs.fusionch.../ChartList.html

 

Hope this helps!

Edited by Bindhu

Share this post


Link to post
Share on other sites

Hi,

 

A. In swfFilename="????" pass only the JavaScript chart Alias (Read more).

 

Example swfFilename="MSColumn3D"

 

 

 

B. these files are really needed ? is missing some ?

 

>> Yes, these files are needed and need to be placed in a single folder.

 

You have missed FusionCharts.HC.Charts.js

 

However, while referring in your HTML/JSP code, you can only refer to FusionCharts.js. It will automatically load the other required files, preferably from the same folder (hence asked to keep all these files in the same folder).

Share this post


Link to post
Share on other sites
Guest Bindhu

oops ! I missed the second question :(

 

You have it answered by Sudipto :)

 

Happy FusionCharting :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this