You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/22 04:35:15 UTC

[jira] [Reopened] (FLEX-32404) Legend does not accept Array of LegendItem

     [ https://issues.apache.org/jira/browse/FLEX-32404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean reopened FLEX-32404:
----------------------------------


Just run into this very issue. Looks like a mismatch between aspectRatio and markerAspectRatio. Either way it should default to "1".
                
> Legend does not accept Array of LegendItem
> ------------------------------------------
>
>                 Key: FLEX-32404
>                 URL: https://issues.apache.org/jira/browse/FLEX-32404
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Charts
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): Windows
> Affected OS(s): 
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Adobe JIRA
>            Priority: Minor
>
> I'm using Flex Builder 3.0.2 (3.2.0 SDK target).
> The docs for Legend say "You can initialize a Legend control by binding a chart control identifier to the Legend control's dataProvider property, or you can define an Array of LegendItem objects." 
> They don't say what to do with the array of LegendItem objects.
> When I set a legend's dataProvider to be an Array of  LegendItem objects, I get an Error:
>  ReferenceError: Error #1069: Property aspectRatio not found on mx.charts.LegendItem and there is no default value.
> 	at mx.charts::Legend/addLegendItem()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\Legend.as:650]
> 	at mx.charts::Legend/populateFromArray()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\Legend.as:678]
> 	at mx.charts::Legend/commitProperties()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\Legend.as:449]
> 	at mx.core::UIComponent/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5807]
> 	at mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:811]
> 	at mx.core::UIComponent/validateNow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5679]
> 	at common.view::BaseCOSAreaChartsMediator/addCOSSeries()[C:\netcore\ui\nc-ui-puremvc\src\common\view\BaseCOSAreaChartsMediator.as:198]
> 	at common.view::BaseCOSAreaChartsMediator/handleNotification()[C:\netcore\ui\nc-ui-puremvc\src\common\view\BaseCOSAreaChartsMediator.as:126]
> 	at modules.explore.view::ExploreCOSAreaChartsMediator/handleNotification()[C:\netcore\ui\nc-ui-puremvc\src\modules\explore\view\ExploreCOSAreaChartsMediator.as:137]
> 	at Function/http://adobe.com/AS3/2006/builtin::apply()
> 	at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()[C:\netcore\ui\nc-ui-puremvc\src\org\puremvc\as3\multicore\patterns\observer\Observer.as:100]
> 	at org.puremvc.as3.multicore.core::View/notifyObservers()[C:\netcore\ui\nc-ui-puremvc\src\org\puremvc\as3\multicore\core\View.as:127]
> 	at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()[C:\netcore\ui\nc-ui-puremvc\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:294]
> 	at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()[C:\netcore\ui\nc-ui-puremvc\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:277]
> 	at org.puremvc.as3.multicore.patterns.observer::Notifier/sendNotification()[C:\netcore\ui\nc-ui-puremvc\src\org\puremvc\as3\multicore\patterns\observer\Notifier.as:60]
> 	at common.model::COSMapProxy/result()[C:\netcore\ui\nc-ui-puremvc\src\common\model\COSMapProxy.as:64]
> 	at common.services::HTTPServiceDelegate/serviceResultHandler()[C:\netcore\ui\nc-ui-puremvc\src\common\services\HTTPServiceDelegate.as:225]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
> 	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:193]
> 	at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:43]
> 	at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
> 	at DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:403]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at flash.net::URLLoader/onComplete()
> When I instead pass the LegendItems to the legend via addChild, only the first legend item shows up.
> If I construct an Array of LegendData objects and set the DataProvider to it the legend shows up, but if I call validateNow on the legend afterward (so that I can set the legend colours) only the first legend item shows up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira