# Error making chart components selectable in Flex

**URL:** <https://forum.kirupa.com/t/error-making-chart-components-selectable-in-flex/258475>\
**Category:** flash\
**Created:** [April 24, 2008, 11:33am UTC](https://forum.kirupa.com/t/error-making-chart-components-selectable-in-flex/258475 "2008-04-24T11:33:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![derm116](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@derm116](https://forum.kirupa.com/u/derm116)\
**Post date:** [April 24, 2008, 11:33am UTC](https://forum.kirupa.com/t/error-making-chart-components-selectable-in-flex/258475/1 "2008-04-24T11:33:48Z")

</div>

Hi all,

I’m getting the following error when I make a bubblechart selectable

[COLOR=red]TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.events::ChartItemEvent@41747c1 to mx.events.IndexChangedEvent.  
at flash.events::EventDispatcher/dispatchEventFunction()  
at flash.events::EventDispatcher/dispatchEvent()  
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]  
at mx.charts.chartClasses::ChartBase/[http://www.adobe.com/2006/flex/mx/internal::selectItem()[C:\Work\flex\dmv\_automation\projects\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:2503]](http://www.adobe.com/2006/flex/mx/internal::selectItem()%5BC:%5CWork%5Cflex%5Cdmv_automation%5Cprojects%5Cdatavisualisation%5Csrc%5Cmx%5Ccharts%5CchartClasses%5CChartBase.as:2503%5D)  
at mx.charts.chartClasses::ChartBase/processRollEvents()[C:\Work\flex\dmv\_automation\projects\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:2277]  
at mx.charts.chartClasses::ChartBase/mouseDownHandler()[C:\Work\flex\dmv\_automation\projects\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:4248][/COLOR]

[COLOR=black]The only code I changed was[/COLOR]

adding in the following to the \<mx:bubbleChart tag  
[SIZE=2]selectionMode="[/SIZE][SIZE=2][COLOR=#990000]multiple[/COLOR][/SIZE][SIZE=2]"  
[/SIZE]  
and making by bubbleseries selectable  
[SIZE=2]bs.selectable=[/SIZE]**[SIZE=2][COLOR=#0033ff]true**[/COLOR][/SIZE][SIZE=2];[/SIZE]  
[SIZE=2][/SIZE]  
[SIZE=2]Anyone have any idea why I’m getting this error!?[/SIZE]  
[SIZE=2][/SIZE]  
[SIZE=2]Thanks,[/SIZE]  
[SIZE=2]Derm  
[/SIZE]
