dougboude

Members
  • Content count

    8
  • Joined

  • Last visited

About dougboude

  • Rank
    Forum Newbie
  1. When programmatically rendering a chart and then using the FC_Rendered() method to immediately save that chart as an image, some labels may not be present. I documented it in detail on my blog (with screenshots) at http://www.dougboude.com/blog/1/2008/09/Converting-FusionChart-to-Image--Disappearing-Chart-Labels.cfm It seems that FC_Rendered event is firing just a little bit too soon. When I manually added a delay within the FC_Rendered method (as outlined in the blog post link above), all labels rendered perfectly. Perhaps a look at where within the AS FC_Rendered is being notified, or adding a very slight delay to that OR the saveAsImage() method? I am using FusionCharts v 3.0.6 in IE 7 and Firefox 3.0.1
  2. www.asiamattersforamerica.org . In particular, go to the 'Search' area and you can view thematic maps with drilldown to details for any given state. You can also select to view the data in graph or data grid format!Also, I had to tackle the problem of being able to print a page containing multiple Fusioncharts, and came up with a solution (albeit a little bit complex). You can read the details of this at http://www.dougboude.com/blog/1/2008/08/Printing-Multiple-FusionCharts-ChartsMaps.cfm
  3. WYSIWYG Serverside Image Generation with Ruby

    Hi there. My challenge wasn't exactly like yours, but I would say very similar, the only difference being that I wasn't mandated to produce PDFs, but rather simply print a page that contained several charts. I did find a way to do it, so wanted to come back here and share what I learned. The solution, at least the way I found to do it, is somewhat complex and involves several steps, but in the end it worked well for me. I took the time to do a very detailed blog post about it, and you can read it at http://www.dougboude.com/blog/1/2008/08/Printing-Multiple-FusionCharts-ChartsMaps.cfm I built my solution using Coldfusion and an MVC framework called Model-Glue, but I tried to keep the explanation as language agnostic as possible. I also did take the time to convert FusionCharts' CFM image processing page into a CFC component. I made all of my code available for download and dissection in the blog post. FusionCharts team, I do believe that the ability to print rendered charts is a need that many people frequently have. If there is anything you can put on your "to do" list that will make this process less painful, it would be very helpful! Such as, allow javascript to be passed to the printURL attribute, allow the ability to designate a popup window for the printURL action (it appears to be hardcoded to _self currently). Thanks for a great product!
  4. SaveImage POST URL question

    Me again. It looks as though I may be a pioneer in this arena of needing to print multiple charts/maps out! I did find a way to do it, so wanted to return here to share what I did. The solution, at least the way I found to do it, is somewhat complex and involves several steps, but in the end it worked well for me. I took the time to do a very detailed blog post about it, and you can read it at http://www.dougboude.com/blog/1/2008/08/Printing-Multiple-FusionCharts-ChartsMaps.cfm FusionCharts team, I do believe that the ability to print rendered charts is a need that many people frequently have. If there is anything you can put on your "to do" list that will make this process less painful, it would be very helpful! Such as, allow javascript to be passed to the printURL attribute, allow the ability to designate a popup window for the printURL action (it appears to be hardcoded to _self currently). Thanks for a great product!
  5. hello. I recently had this same desire: to save charts as images while NOT changing pages. I did find a way to do it, as well as find a way to allow the printing of multiple charts at the same time. The solution, at least the way I found to do it, is somewhat complex and involves several steps, but in the end it worked well for me. I took the time to do a very detailed blog post about it, and you can read it at http://www.dougboude.com/blog/1/2008/08/Printing-Multiple-FusionCharts-ChartsMaps.cfm FusionCharts team, I do believe that the ability to print rendered charts is a need that many people frequently have. If there is anything you can put on your "to do" list that will make this process less painful, it would be very helpful! Such as, allow javascript to be passed to the printURL attribute, allow the ability to designate a popup window for the printURL action (it appears to be hardcoded to _self currently). Thanks for a great product!
  6. SaveImage POST URL question

    One more thing that could be a solution, but I need some input... I tried and failed to figure out a way to utilize a JS function as the POST link for SaveImage, but was unsuccessful. For instance, I know that it is possible to use JS as a URL instead of a regular http call, ( clicking the link <a href="javascript:alert('hello');">Click me!</a> works fine! ) but how can i use the javascript value as the value for my imageSaveURL attribute?? I tried something like this: imageSaveURL='javascript:alert('hello');' but no matter how I encoded it, escaped it, or used html entities in it, I could NOT get fusioncharts to accept it as valid html. Is there a way to use javascript as the value for the imageSaveURL attribute??? Thanks
  7. SaveImage POST URL question

    I already have the saveasimage functionality working for my chart. What I need, however, is a way to make the data post have a target of "_blank" instead of "_self" (I don't want the user to be taken away from the current page...I want them to get the print in a new window!). I have found the exact line in the Map.AS file that does this (l.send(this.params.imageSaveURL, "_self", "POST"), and I see that _self is a hard coded value. Is it possible for me to edit this AS file and utilize it with only the Developer version purchased? OR, is there ANOTHER way I can force my Save Image function to perform it's POST call in a new window rather than in _self? It is very inconvenient to force the user to navigate away from the page they are looking at simply to perform a print function. Thank you!
  8. Implementation question

    Here is what I am trying to accomplish: page loads with mapdiv in place, but no map object in existence. 'search' button is clicked. Search button (via javascript): checks to see if map object currently exists (if(! getMapFromId("map1"))); if no map object exists, create one (value of the swf file to use is passed in to function at onClick of search button) var map = new FusionMaps(swfPath,"map1","700","400","0", "1"); Ajax request executes to retrieve entity xml appropriate for the swf file chosen; newly created map is updated and rendered via the Ajax call's 'onComplete' handler var mapobj = getMapFromId("map1"); mapobj.setDataXML(ajaxrequest.responseText); mapobj.render("mapdiv"); Why would this not work? What is wrong with this approach/logic? The symptoms are: ver mapobj = getMapFromId("map1") is undefined. It's as though it does not exist. How can I reinitialize my map object client side whenever a different map is selected, no frames, no iframes, all within a single page? Any assistance and input you can provide is much appreciated. Most helpful would be a very very simple example of Javascript that does something similar to what I'm describing. I have looked through online examples, documentation, googled it.... Thank you. Shukriya. Doug :0)