Sant

Javascript-Chart Type Not Supported

Recommended Posts

Hi,

I am using Fusion charts to create charts in my app. I want to create more than one chart in a page.It s working fine when render the charts with out JavaScript. If FusionCharts.setCurrentRenderer('javascript') is used in the code, only one chart is getting displayed.I have attached my code for your reference.Kindly help me on this issue.

Thanks in Advance....

productperformance.html

Edited by Sant

Share this post


Link to post
Share on other sites

Hi,

I am facing the same problem. Charts work fine in Flash mode, but when put in javascript, nothing gets rendered. Followed all the instruction given in documentation, but not sucess. Only the chart given in one of the demo on fusion chart website for javascript comes fine. Ids there is something not documented, something missing, like change in data format, or anaything for javascript. Tested it both on chrome and safari, javascript code don't works. Also when put on javascript, the browser crashes or frezees.

 

Please help. hoping for proper guidance and expedite response. PFA code.

Thanks in Advance....

Shweta

test.html

relPieData.xml

columnData.xml

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi Shweta,

 

From sample code and chart XML, it seems that you might be using FusionCharts Free version.

 

Please note, FusionCharts Free does not support JavaScript rendering of charts.

 

JavaScript rendering capabilities are introduced from FusionCharts v3.2.

 

Please refer the following links, for more information:

http://docs.fusionch...pabilities.html

 

http://docs.fusionch...singPureJS.html

 

http://docs.fusionch...FirstChart.html

 

Also, refer this post: http://forum.fusioncharts.com/topic/12422-javascript/page__pid__49130#entry49130

Share this post


Link to post
Share on other sites

Hi

 

I am getting this problem using a latest real time column/line widgets (which i downloaded couple of days back). It works fine on IE9 but on chrome and firefox I get this message "chart type not supported".

If I open developer tools of chrome I see that the in console i get the message "FusionCharts.HC.Widgets.js" not found (404)...though its there along with other JS files.

Also on the network mode I see that content type for this file is coming as "text/html" rather than as "javascript".....

Please note I have copied rest of the JS files from charts as well but didnt help either. I see that fusioncharts.js in charts and widgets are of different sizes.

Any suggestions?

I used the FusionCharts.setCurrentRenderer('javascript');

 

Rahul

Hi Shweta,

 

From sample code and chart XML, it seems that you might be using FusionCharts Free version.

 

Please note, FusionCharts Free does not support JavaScript rendering of charts.

 

JavaScript rendering capabilities are introduced from FusionCharts v3.2.

 

Please refer the following links, for more information:

http://docs.fusionch...pabilities.html

 

http://docs.fusionch...singPureJS.html

 

http://docs.fusionch...FirstChart.html

 

Also, refer this post: http://forum.fusionc...9130#entry49130

Edited by rs1980

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

A warm welcome to the FusionCharts Forum :)

 

Can you please try clearing the browser cache memory?

 

Hope this helps!

Share this post


Link to post
Share on other sites

Hi Bindhu

 

You know what it worked :-)

I was clearing my cache for last day or hour...and when I cleared all from both browsers it started working...

 

Thanks for your help.

Hi,

 

A warm welcome to the FusionCharts Forum :)

 

Can you please try clearing the browser cache memory?

 

Hope this helps!

Share this post


Link to post
Share on other sites

HI All,

 

Iam trying to display javascript fusion charts . It giving error Chart type not supported. I added code FusionCharts.setCurrentRenderer('javascript'); in my script. It giving this error message. If i remove this it displaying flash chart properly.

can any one help me. Iam recently downloaded charts from site.

 

Here is my code:

<script type="text/javascript" src="/sap/bc/bsp/irm/public/60D/Charts/FusionCharts.js"></script>

<script type="text/javascript" src="/sap/bc/bsp/irm/public/60D/Charts/FusionCharts.HC.Charts.js"></script>

<script type="text/javascript" src="/sap/bc/bsp/irm/public/60D/Charts/FusionCharts.HC.js"></script>

<script type="text/javascript" src="/sap/bc/bsp/irm/public/60D/Charts/jquery.min.js"></script>

 

 

<script>

FusionCharts.setCurrentRenderer('javascript');

chartRef = new FusionCharts('/sap/bc/bsp/irm/public/60D/Charts/MSColumn3D.swf','chartID','100%','100%','0','1');

chartRef.setXMLData(chartStr);

chartRef.render('CHART_CONTAINER2');

 

chartStr1 = '<chart caption="Transaction Types" palette="2" animation="1" showValues="0" ';

chartStr1 = chartStr1 + ' numberPrefix="$" formatNumberScale="0" showPercentInToolTip="0" showLabels="0" showLegend="1" ';

chartStr1 = chartStr1 + ' aboutMenuItemLabel="About Vistex" aboutMenuItemLink="n-http://www.vistex.com" >';

 

chartStr1 = chartStr1 + '<set label="CO-OP ADVERTISING" ';

chartStr1 = chartStr1 + ' value="464162.50"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@CO-OP ADVERTISING"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="BOOKINGS" ';

chartStr1 = chartStr1 + ' value="426897.50"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@BOOKINGS"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="MSA REBATE" ';

chartStr1 = chartStr1 + ' value="447361.25"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@MSA REBATE"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="SUPER BUY" ';

chartStr1 = chartStr1 + ' value="397812.50"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@SUPER BUY"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="SHOW" ';

chartStr1 = chartStr1 + ' value="445402.50"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@SHOW"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="SUPER SAVER" ';

chartStr1 = chartStr1 + ' value="410148.75"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@SUPER SAVER"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="CONVERSION ALLOW" ';

chartStr1 = chartStr1 + ' value="404357.50"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@CONVERSION ALLOW"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '</chart>';

 

 

chartRef1 = new FusionCharts('/sap/bc/bsp/irm/public/60D/Charts/Pie3D.swf','chartID1','100%','100%','0','1');

chartRef1.setXMLData(chartStr1);

chartRef1.render('CHART_CONTAINER1');

 

</script>

 

Thanks in advance.

 

Anand.

Share this post


Link to post
Share on other sites
Guest Bindhu

HI All,

 

Iam trying to display javascript fusion charts . It giving error Chart type not supported. I added code FusionCharts.setCurrentRenderer('javascript'); in my script. It giving this error message. If i remove this it displaying flash chart properly.

can any one help me. Iam recently downloaded charts from site.

 

Here is my code:

<script type="text/javascript" src="/sap/bc/bsp/irm/public/60D/Charts/FusionCharts.js"></script>

<script type="text/javascript" src="/sap/bc/bsp/irm/public/60D/Charts/FusionCharts.HC.Charts.js"></script>

<script type="text/javascript" src="/sap/bc/bsp/irm/public/60D/Charts/FusionCharts.HC.js"></script>

<script type="text/javascript" src="/sap/bc/bsp/irm/public/60D/Charts/jquery.min.js"></script>

 

 

<script>

FusionCharts.setCurrentRenderer('javascript');

chartRef = new FusionCharts('/sap/bc/bsp/irm/public/60D/Charts/MSColumn3D.swf','chartID','100%','100%',' 0','1');

chartRef.setXMLData(chartStr);

chartRef.render('CHART_CONTAINER2');

 

chartStr1 = '<chart caption="Transaction Types" palette="2" animation="1" showValues="0" ';

chartStr1 = chartStr1 + ' numberPrefix="{:content:}quot; formatNumberScale="0" showPercentInToolTip="0" showLabels="0" showLegend="1" ';

chartStr1 = chartStr1 + ' aboutMenuItemLabel="About Vistex" aboutMenuItemLink="n-http://www.vistex.com" >';

 

chartStr1 = chartStr1 + '<set label="CO-OP ADVERTISING" ';

chartStr1 = chartStr1 + ' value="464162.50"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@CO-OP ADVERTISING"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="BOOKINGS" ';

chartStr1 = chartStr1 + ' value="426897.50"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@BOOKINGS"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="MSA REBATE" ';

chartStr1 = chartStr1 + ' value="447361.25"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@MSA REBATE"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="SUPER BUY" ';

chartStr1 = chartStr1 + ' value="397812.50"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@SUPER BUY"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="SHOW" ';

chartStr1 = chartStr1 + ' value="445402.50"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@SHOW"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="SUPER SAVER" ';

chartStr1 = chartStr1 + ' value="410148.75"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@SUPER SAVER"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '<set label="CONVERSION ALLOW" ';

chartStr1 = chartStr1 + ' value="404357.50"';

 

chartStr1 = chartStr1 + ' link="j-onVPieAllClick-ZSPEND@CONVERSION ALLOW"';

 

chartStr1 = chartStr1 + ' />';

 

chartStr1 = chartStr1 + '</chart>';

 

 

chartRef1 = new FusionCharts('/sap/bc/bsp/irm/public/60D/Charts/Pie3D.swf','chartID1','100%','100%',' 0','1');

chartRef1.setXMLData(chartStr1);

chartRef1.render('CHART_CONTAINER1');

 

</script>

 

Thanks in advance.

 

Anand.

 

 

Hi,

 

Can you please let us know the version of FusionCharts Suite that you are currently using?

Share this post


Link to post
Share on other sites

Hi,

 

Can you please let us know the version of FusionCharts Suite that you are currently using?

 

HI,

Iam using new fusionchart XT (V3.2.2) . recently downloaded from fusioncharts site.

 

Thanks you for u r responce.

 

Anand

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Can you please try clearing the browser cache memory?

 

Also, please share the generated XML data for testing purposes.

Share this post


Link to post
Share on other sites

Hi,

 

Can you please try clearing the browser cache memory?

 

Also, please share the generated XML data for testing purposes.

HI Bindhu,

Actualy We are using V3.2.1 Charts. Which version onwrds javascript charts works.

Following is my code. I cleared browser cache also.

<div id="CHART_CONTAINER2" style="width:100%;height:350px;border:1px solid #f9f9f9;">

Fusion Charts

</div>

<script type="text/javascript" src="D:/test/Charts/FusionCharts.js"></script>

<script type="text/javascript" src="D:/test/Charts/FusionCharts.HC.Charts.js"></script>

<script type="text/javascript" src="D:/test//Charts/FusionCharts.HC.js"></script>

<script type="text/javascript" src="D:/test/Charts/jquery.min.js"></script>

<script>

FusionCharts.setCurrentRenderer('javascript');chartStr = chartStr + '<chart caption="Net Price" xAxisName="Month" yAxisName="Amount" showLabels="1" showvalues="1" ';

chartStr = chartStr + 'decimals="2" numberPrefix="{:content:}quot; placeValuesInside="1" rotateValues="1" ';

chartStr = chartStr + ' aboutMenuItemLabel="About Vistex" aboutMenuItemLink="n-http://www.vistex.com">';

chartStr = chartStr + '<categories>';

 

chartStr = chartStr + '<category label="JAN" />';

 

chartStr = chartStr + '<category label="FEB" />';

 

chartStr = chartStr + '<category label="MAR" />';

 

chartStr = chartStr + '<category label="APR" />';

 

chartStr = chartStr + '<category label="MAY" />';

 

chartStr = chartStr + '<category label="JUN" />';

 

chartStr = chartStr + '</categories>';

chartStr = chartStr + '<dataset seriesName="Net Profit">';

 

chartStr = chartStr + '<set value="333500.00" link="j-onVChartClick-JAN"/>';

 

chartStr = chartStr + '<set value="427300.00" link="j-onVChartClick-FEB"/>';

 

chartStr = chartStr + '<set value="83116.25" link="j-onVChartClick-MAR"/>';

 

chartStr = chartStr + '<set value="698151.25" link="j-onVChartClick-APR"/>';

 

chartStr = chartStr + '<set value="1193197.50" link="j-onVChartClick-MAY"/>';

 

chartStr = chartStr + '<set value="260877.50" link="j-onVChartClick-JUN"/>';

 

chartStr = chartStr + '</dataset>';

chartStr = chartStr + '</chart>';

 

chartRef = new FusionCharts('D:/test/Charts/MSColumn3D.swf','chartID','100%','100%','0','1');

chartRef.setXMLData(chartStr);

chartRef.render('CHART_CONTAINER2');

</script>

 

Thanks,

Anand

Edited by anand_vis

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