Sign in to follow this  
bazooka

Fusioncharts.setcurrentrenderer('javascript') Not Working

Recommended Posts

I'm using one of your examples and I'm converting it to asp.net c#. It works only in flash mode but not in

javascript mode rendering. Below is the source code, I'm I missing something?

 

 

<?xml version="1.0" encoding="iso-8859-1"?><!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">

 

<head runat="server">

 

<title>Multi Series Bar 2D Chart</title>

 

<link href="../assets/ui/css/style.css" rel="stylesheet" type="text/css" />

 

<script type="text/JavaScript" src="js/FusionCharts.js"></script>

 

<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>

 

</head>

 

<body>

 

<h3 class="chart-title">Multi Series Bar 2D Chart</h3>

 

<script type="text/javascript" src="js/Bar2D3.js" ></script>

 

 

<div id="chartdiv" align="center">Chart will load here</div>

 

<script type="text/javascript">

 

//If I comment out the below statement it works, in flash mode but not using javascript mode.

FusionCharts.setCurrentRenderer('javascript');

 

/*Render in Javascript not flash...*/

 

var chart = new FusionCharts("fusioncharts/Bar2D.swf", "ChartId", "310", "185", "0", "1");

 

chart.setXMLData( dataString );

 

chart.render("chartdiv");

 

</script>

 

 

 

<div class="qua-button-holder"></div>

 

<div class="show-code-block"></div>

 

</body>

 

</html>

 

Edited by bazooka

Share this post


Link to post
Share on other sites

Hi,

 

While rendering the charts in JavaScript mode, it requires FusionCharts.HC.js, FusionCharts.HC.Charts.js and jquery.min.js.

 

However, you would only need to include FusionCharts.js in your web page and rest of the JS has to be present in the same folder.

 

It will be automatically loaded on-demand by FusionCharts.js.

 

Could you please ensure all the JS files are present in the same folder?

 

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