Working with legend

In order to describe what RingChart is displaying the user can instantiate a RingChartLegend..

In the following code sample, we provide a basic integration of the RingChart Legend
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#CCCCCC" layout="absolute" xmlns:ns1="fr.kapit.ringchart.*" > />
	<mx:Script
		<![CDATA[
			import mx.collections.ArrayCollection;
                [Bindable]
                private var expenses:ArrayCollection = new ArrayCollection([    
                {France:2000, Germany:1000, Spain:200, Italy:100,Belgium:100},
                {France:2500, Germany:3000, Spain:1500, Italy:1200, Belgium:1200}]) 			
		]]/>
	</mx:Script>
		<ns1:RingChart id="myRingChart" 
                       height="100%" 
                       width="100%" 
                       dataProvider="{expenses}"
                       getDataAsSeries="true" />
                       
                       
            <ns1:RingLegend id="myLegend" 	
		        ringChart="{myRingChart}" 
				width="100%" 
				height="100%" 
				direction="horizontal"/>
</mx:Application>

RingChartLegend dipatches a nodeRoleOver events that can be captured by the developer to specify a custom behavior. This event ensures an easy deployment and interaction with the component.

This event can be descibed as following :