codeMonkey

Members
  • Content count

    6
  • Joined

  • Last visited

About codeMonkey

  • Rank
    Forum Newbie
  1. Memory Leak

    I noticed that when I would refresh my web page enough, the chart would turn into a black screen and the browser started running really slowly. After I looked into it, I found out that every time the browser renders a chart, it eats up a little bit of memory and doesn't release it until the browser is closed. I tried solving this problem by using .dispose() but things just got sticky. I can't imagine I am the only one that has run into this problem, so I was wondering how other people solved it. Is there another way apart from .dispose(), or is that the best way?
  2. Memory Leak

    I noticed that after I refreshed my pages a lot while developing, the charts would eventually black out and my browser would run really slowly. After a while I realized that every time the page refreshes it eats up a little more memory and doesn't free it up until the browser is closed. I tried using dispose() but things got a little sticky. Is there another way to free up memory, or is dispose the best method for solving this problem?
  3. Simple Javascript Link Error

    Thanks! I have been trying to figure this out for a couple days and that was exactly what I needed to do, it works great now.
  4. Simple Javascript Link Error

    I downloaded the files that you posted and opened the html file, but it had the same problem. The chart displayed correctly, but when I clicked on the columns, nothing happened. I tried viewing the file in IE v 7 and FireFox, but it didn't work in either of them. Is there a setting that I need to change in order to enable javascript functions as links?
  5. Move Data Value Label

    I am just learning FusionCharts and I have a quick formatting question. I am making a lot of column charts and by default, if the column is close enough to the top of the chart area, the label will be printed inside the column. This can make it hard to read depending on the color scheme. Is there a way to change the settings of the chart so that the label will always appear above the column? I looked through the documentation but didn't find anything. Any suggestions?
  6. I am new to FusionCharts and am running into some basic problems executing javascript functions when a user clicks on data items in my graph. I just want an alert box to appear when the user clicks on a column in a column chart. I tried copying and pasting some sample code from the documentation website, but the page does execute correctly. The chart loads correctly and looks great but when I click on the column, nothing happens. I used the sample code from the following link: http://www.fusioncharts.com/docs/?DrillDown/JavaScript.html After that didn't work, i went about it another way and tried to imbed javascript methods directly into the xml file, but that didn't work either. This must be a very simple error that I am making so I was wondering if anyone would be kind enough to help me out. I tried it in both IE and Firefox and it seems like the function is never getting called. Here is the html file: <html> <head> <title>JavaScript Link Example</title> <script language="JavaScript" src="../FusionCharts/FusionCharts.js"></script> <script LANGUAGE="JavaScript"> function myJS(myVar){ window.alert(myVar); } </SCRIPT> </head> <body bgcolor="#ffffff"> <div id="chartdiv" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div> <script type="text/javascript"> var myChart = new FusionCharts("../FusionCharts/Column2D.swf", "myChartId", "500", "300", "1", "1"); myChart.setXMLUrl("data.xml"); myChart.render("chartdiv"); </script> </body></html> Here is the xml file: <chart caption='ABC Bank Branches' subCaption='(In Asian Countries)' yaxislabel='Branches' xaxislabel='Country'> <set label='Hong Kong' value='235' link="JavaScript:alert('hello');"/> <set label='Japan' value='123' link='j-myJS-Japan, 123'/> </chart>