FusionCharts Forum: laszlo how to save image - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

laszlo how to save image

#1 User is offline   griffo 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 13-March 08

Posted 13 March 2008 - 05:13 PM

hello,



I recently started using Fusion Charts in my app and they're still very nice to. (http://forum.openlas....t=fusion+chart)



As well as not being able to catch mouse click events (see my previous post) I am also having trouble saving the image.



I tried to apply the 'saving chart as image' info in the online fusion documentation (http://www.fusioncha...Docs/Index.html). I created a script/function to call the chart.saveAsImage() function, but it is not recognized.



Has anyone got this to work in laszlo?



thanks



G






  















    

    

    

    

      this.loadChart();

    

	

    

      var mc = this.getMCRef();

      mc._lockroot = true;

      var p = new LzParam();

      p.addValue("dataXML", this.chartDataset.childNodes[0].serialize(), true);

      p.addValue("chartWidth", this.width);

      p.addValue("chartHeight", this.height);

      if (this.protectStage)

        p.addValue("Stage", null);

      mc.loadMovie(this.chartSwf + "?" + p.toString());

		Debug.write("should have created chart");

    

    

      this.loadChart();