Handling CSV format

CSV Files are organized in rows and columns using a CSV delimiter. A data field has a row index and column index, generally described in a String format while it can represent a Date, a Number or other content. RingChart handles CSV parsing, reconstruction and data content interpretation via a set of options. In this part we will show how RingChart meets your needs for CSV content visualization. RingChart provides some extra optional properties to provide an advanced CSV data input parsing. These properties and methods are following:

It is advised to visit the Components Data Input section of all Kap Lab components to get more details about the data parsing properties and functions. Same as an ICollection data, the user has to differentiate between the data being set as series or not. When manipulating a provider where data are not set as series the user must set the wedgeLabel property so that RingChart knows how to affect names to the different wedges.


This tabulated input will be consummed by the RingChart component in the following example:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#CCCCCC" layout="absolute" xmlns:ns1="fr.kapit.ringchart.*" > />
   			private var CSV:Class;
   			private function onCreationComplete():void
   			    var byteArray:ByteArray = new CSV() as ByteArray;
			    var content:Object = byteArray.readUTFBytes(byteArray.length);
			    myRingChart.dataProvider = String(content);
		<ns1:RingChart 	id="myRingChart"  
		                 width="100%" height="100%" 
		                 viewLabel="true" />