Jump to content


AngularGauge not working with Flex Modules


  • Please log in to reply
4 replies to this topic

#1 Madhumita

Madhumita

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 1434 posts

Posted 18 January 2010 - 08:55 AM

Hello,

Welcome to FusionCharts Forum. :)

Could you please make sure that all the paths that you have specified in your application is relative to the application and not absolute paths ?

Hope this helps. :)

Regards,
Madhumita Chakraborty

Follow us on [url="http://www.twitter.com/fusioncharts"]Twitter[/url] :)

#2 anjaneyulu_ch123

anjaneyulu_ch123

    Forum Newbie

  • Members
  • 1 posts

Posted 18 January 2010 - 07:28 AM

Hi,

I have created AngularGuage in a Module, and i am calling this module in the application at run time. I am not able to see the AngularGuage(Module is loading dynamically) . But if I have used the same component directly in the Application without using Modules, It is working fine. Did anybody faced this issue. I am new to using FusionWidgets. Can anybody help me how to use AngularGuage with Modules.

Thanks in Advance..

Avp

#3 dv

dv

    Forum Newbie

  • Members
  • 2 posts

Posted 08 February 2010 - 07:08 AM

I'm having this same exact issue. I have created a simple application where I test that the widget displays properly:



<components:FusionWidgets FCChartType="AngularGauge" FCUseDefaultData="true"/>




This works flawlessly, and eliminates any doubts that the component isn't properly installed/linked within the project.



I then create another application where the widget is to be created dynamically, upon button click:



private function onClick(event:MouseEvent):void {

var gauge:FusionWidgets = new FusionWidgets();

gauge.FCUseDefaultData = true;

this.addChild( gauge );

}




This fails by not displaying anything at all, no error, warning... nothing. I've even tried to call the FCRender() method at various places without any luck.



I've been touting how great these components are to my client, who is about to purchase an OEM license, and I now find that I cannot dynamically add them to an application. Am I missing something obvious here?



Any help would be greatly appreciated, I'm hoping to avoid the embarrassment of having to retract from choosing FusionCharts as our data visualization solution.

#4 dv

dv

    Forum Newbie

  • Members
  • 2 posts

Posted 08 February 2010 - 07:15 AM

UPDATE



I also just realized that instantiating and adding the component upon "creationComplete" works:



private function onCreationComplete(event:FlexEvent):void {

var gauge:FusionWidgets = new FusionWidgets();

gauge.FCUseDefaultData = true;

this.addChild( gauge );

}




Why would it work upon creation complete but (seemingly) not at anytime after that?



Help!

#5 Sudipto Choudhury

Sudipto Choudhury

    Supreme Being

  • Administrators
  • 2099 posts

Posted 28 April 2010 - 05:01 AM

Hi all,



Could you please try providing the width and height?



for example this works:



<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="com.fusionwidgets.components.*">

<mx:Button x="90" y="373" label="Button" click="createChart()"/>

<mx:Script>

<![CDATA[





import com.fusionwidgets.components.*;



private function createChart():void {

var gauge:FusionWidgets = new FusionWidgets();

gauge.height = 200;

gauge.width = 200;


gauge.FCUseDefaultData = true;

this.addChild( gauge );

}



]]>

</mx:Script>



</mx:Application>


Regards,

Sudipto Choudhury
FusionCharts Team

I code, therefore I am.

Follow us on Twitter