RingChart is used to present data in form of rings. Just like a pie chart, RingChart shows relationship of a part to a whole.
RingChart is a ready-to-use Flex component that can be easily integrated in any Flex or Air application to provide a powerful data analysis tool and can be parameterized using a large set of properties.
RingChart, as any other Kap Lab component, was designed to handle any type of data input using an internal data parsing model. It enables advanced interpretation of any data source through a filtering option that can be applied on the CSV files and ICollectionView instances.
ICollectionView instances including XML, ArrayCollection
Objects with children property or with a custom TreeDataDescriptor
CSV files.
ICollectionView data
An ICollectionView is a view onto a collection of data. All Classes implementing the ICollectionView interface (XML, XMLListCollection, ArrayCollection) are handled by the RingChart
The data provided to the component can be parsed as its structure. In fact, data can defined in these two following ways:
As series: Each object in an ArrayCollection or each tag in a XML will contain the data displayed on the wedges of a serie the RingChart.
Not as series: Each object in the ArrayCollection or each tag in a XML will contain the data displayed on the different wedges in all the series of the object.
RingChart provides a property getDataAsSeries. The property is set to false as a default value. The developer has to set it to true if he wants to parse his data in a serial structure.
When manipulating a provider where data is not set as series, the user must set the wedgeLabel property so that RingChart knows how to affect names to the different wedges.
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:
filterPath : used to extract needed data from the CSV file;
csvDelimiter : used to indicate the delimiter of the CSV file(by default it is set to ";")
withHeaders : used to indicate if the first row should be considered as column headers (by default is set to true);
recordDelimiter : used to indicates the delimiter of a field (if it exists). It is generally used when data field content contains CSVDelimiter string as in such situations CSV parsing produces wrong results. By default, the recordDelimiter property is "" and can be modified when needed.
reportingFunction: used to transform the data fields arrays into a real data by applying standard or custom functions.
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.
CSV File Integration Sample
Manipulating a CSV File containing data not set as series
Data with children property or customTreeDataDescriptor
In some application cases like administration or introspection applications , the user wants to parse and display the content the internal data structures.RingChart, thanks to an internal data parsing model, allows such functionalities to answer this use case.
The developer should only give the reference to its object instance and a custom Tree Data Descriptor (via the treeDataDescriptor property (see common Data Input section to more details) allowing custom navigation inside the object. This feature is applied for object with no children property.
The options used for ICollectionView instances described previously can be also applied to this kind of data format.
Filter Path is the most important field when user wants to apply filter on the data provider.
the filterPath can be used with different data kinds ArrayCollection, XML, CSV)
radialDisplacement : used to indicate to the RingChart the distance to use when expanding a wedge on clicking on it;
selectedWedge: used to select all the wedges that describes a same entity. To select a specific wedge on a serie users have to specify both selectWedge and selectedSerie;
RingChart dipatches events that can be captured by the developer to specify a custom behavior. These events ensure an easy deployment and interaction with the component.
The dispatched events are listed in the following table:
Event
Description
click
Dispatched when a wedge is clicked
rollOver
Dispatched when the mouse is rolled over a wedge
rollOut
Dispatched when the mouse is rolled out of a wedge
Ring Chart Legend Event
This event is dispatched by the legend instance when rolling over it. This permits an interaction between the legend and the native application.
Event
Description
nodeRollOver
Dispatched when the mouse is rolled out over an item in the legend