Sign in to follow this  
griffo

chart event in laszlo

Recommended Posts

Dear all,

 

 

 

I recently started using Fusion Charts in my app and very nice there are to. (http://forum.openlaszlo.org/showthre...t=fusion+chart)

 

 

 

However I can't work out how to catch mouse click events fired when a value is clicked on in the chart.

 

 

 

I tried to apply the 'handling click events' info in the 'Guide for Flash Developers' in the online fusion documentation (http://www.fusioncharts.com/Docs/Index.html). But it looks like the event trys to launch a new page and a 404 error is captured.

 

 

 

Has anyone got this to work in laszlo?

 

 

 

thanks

 

 

 

G

 














save chart



















     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();


















































































              align="center"

              valign="top"

              width="600"

              height="400"

              protectStage="true"

              chartDataset="fusionLineChartDS"

              chartSwf="../../FusionCharts/Line.swf"/>





Share this post


Link to post
Share on other sites

Hi,

 

 

 

I hadn't added that, but have now, as an attribute to the chart node, but the same error is occuring. I tried to post some example working laszlo code in the code brackets, but it didn't show for some reason. I have attached the lzx file as FusionLaszloChart_Event_Save.txt

 

 

 

thanks

 

 

 

g

 












save chart



















     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();


















































































              align="center"

              valign="top"

              width="600"

              height="400"

              protectStage="true"

              chartDataset="fusionLineChartDS"

              chartSwf="../../FusionCharts/Line.swf"/>





FusionLaszloChart_Event_Save.txt

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