Sign in to follow this  
nomori

Upgrage And Fusionchart_Gen.asp Problem

Recommended Posts

I upgraded to version XT, the chart is not drawn to errors such as file attachments(screen shot from IE debugger).

(Error message is "object dosent support this property or method" or is "undefined is null or not an object".)

Do you have any problems.

 

My code is as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
   <title></title>
   <meta http-equiv="content-type" content="text/html;charset=utf-8" />	
   <link href="./css/style2.css" rel="stylesheet" type="text/css" />
   <script src="./FusionCharts/FusionCharts.js" type="text/javascript" language="Javascript"></script>

</head>
<body>
<!-- #include file="./FusionCharts/FusionCharts_Gen.asp" -->
<%
myItem=Array(Array(15,10,10,30,35),Array(20,10,15,25,30))
myItemLabel=Array("a","b","c","d","e")
dim FC
set FC = new FusionCharts
call FC.setChartType("StackedBar2D")
call FC.setSize("400","200")
call FC.setSWFPath("./FusionCharts/")
dim strParam        
strParam="numberSuffix=%;showLegend=1;"
' Set chart attributes 
call FC.setChartParams(strParam)
' Add category names
call FC.addCategory("gr1", "", "")
call FC.addCategory("gr2", "", "")

for i=0 to 4
' Create a new dataset 
call FC.addDataset(myItemLabel(i), "")       
' Add chart values for the above dataset
call FC.addChartData(myItem(0)(i), "", "")
call FC.addChartData(myItem(1)(i), "" , "")
next
call FC.renderChart(false) 
%>
</body>
</html>

Share this post


Link to post
Share on other sites
Guest Angshu

Hi.

 

Thanks for your post.

Please follow the steps below:

 

1. Check if you've copied FusionCharts.js (by default, present in FusionCharts folder) at the right location.

 

2. Check if the path to this JavaScript file is properly provided in your page, under the <head> element.

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