Sign in to follow this  
denisagui

Javascript - Charty Type Not Supported

Recommended Posts

Hi Folks.

 

I've had some problems with the javascript graphics rendering in the last days.

 

i used jsf.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:fc="http://www.fusioncharts.com">

<h:head>
<script type="text/javascript" src="../../../FusionCharts/FusionCharts.js"></script>
</h:head>
<body>
<fc:render chartId="LineAnualComparative"
	swfFilename="../../../FusionCharts/MSLine.swf" width="800" height="600"
	registerWithJS="true" renderer="javascript" debugMode="false" xml="#{linhaMB.comparativoAnual.xml}" />  //return a string with xml code. 
</body>
</html>

 

 

 

 

however , my web page debug show a null reference to the swfFilename as can be seen on the follow code, and my web page only displays "charty type not supported":

 

<script type="text/javascript">           
var chart_LineComparativoAnual = new FusionCharts('[b]null[/b]', 'LineComparativoAnual', '800', '600', '0', '1');	       
chart_LineComparativoAnual.setDataXML("<?xml version='1.0' encoding='ISO-8859-1'?><chart showValues='0'.../>  </dataset></chart>");	       
chart_LineComparativoAnual.render('LineComparativoAnualDiv');		</script>

 

 

 

somebody have a solution for this problem ?

it's possible send me a example of how to do it ?

tnks for all.

 

obs: i tested in ie9, firefox and chome... both have the same problem.

Edited by denisagui

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

You may use the JavaScript alias instead, in case of rendering JavaScript charts.

 

Please use MSLine instead of ../../../FusionCharts/MSLine.swf in the swfFilename parameter.

 

Hope this helps!

Share this post


Link to post
Share on other sites
Hi,

 

You may use the JavaScript alias instead, in case of rendering JavaScript charts.

 

Please use MSLine instead of ../../../FusionCharts/MSLine.swf in the swfFilename parameter.

 

Hope this helps!

 

 

i tested with alias instead of file path, but the problem was not solved.

i've been observed, the reference to the file remains null as described earlier.

 

the example i sent was based on documentation avaliable in http://docs.fusioncharts.com/widgets/ --> Home > Creating your first chart > Using server-side scripts / Using J2EE / Code to create JavaScript chart

 

it's possivel send me an example with these references ?

 

 

 

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Can you please let us know if you are trying to render MSLine chart or AngularGauge?

 

What kind of sample do you actually require?

 

Do you need a JSF sample or HTML sample?

Share this post


Link to post
Share on other sites

i solved this problem based on the analysis that was done during the last week.

 


<fc:render chartId="LineAprovadaNegadajavascript" filename="MSLine"
	width="584" height="270" debugMode="false"
	xml="#{linhaMB.linhaAprovNega.xml}" renderer="javascript" />

 

i changed swfFilename for filename

and everything went as expected, the graph was generated correctly.

Share this post


Link to post
Share on other sites

i believe many peoples have or will have the same problem, then it would be a good idea to modify the documentation.

 

PS: well that a supreme being could present me with a suite... maybe for continue my studies...

a joke! unsure.gif

Edited by denisagui

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

The swfFilename attribute is working fine for us.

 

It should work for everyone else too.

 

Hope this helps!

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