Posts Tagged ‘Flex components’
June 22nd, 2009
As promised, releasing an Adobe Flex 3 component for Choropleth Map. The Choropleth Map component is an extension/implementation of my Map component released earlier.
What is a Choropleth Map?
A choropleth map (Greek χωρα + πληθαίν:, (“area/region” + “multiply”) is a thematic map in which areas are shaded or patterned in proportion to the measurement of the statistical variable being displayed on the map, such as population density or per-capita income.
The choropleth map provides an easy way to visualize how a measurement varies across a geographic area or it shows the level of variable within a region. — Wikipedia
—
The component does just that. It plots a map and then applies a theme to the various regions of the map. Relevant data and legend information needs to be provided to the component. (See example attached below!)
The component also provides tooltips on specific regions and provides an “Active Legend” that lets you highlight and hide/unhide specific regions of the map based on the data and legend.
Demo | Source code
June 15th, 2009
Releasing a simple, powerful and extensible Map component developed using ActionScript and Flex 3. The idea is that a map contains one or more polygons representing each sub-region. Each polygon can have mouse events attached to it and can have further properties set. This concept is further extended in my second map component i.e. the Choropleth Map that will be released later this week so stay tuned!
Demo | Source code
January 18th, 2009
This component extends the default Legend component and adds to it few item highlighting related features. It works with all chart types and clicking on a legend item will lead to its visibility being toggled. Furthermore mouse over legend item leads to reduction of alphas of other chart series except the related chart series of the legend item on which the mouse is over.
Code:
<visualization:AdvancedLegend dataProvider="{lineChart}"/>
Screenshot:

What’s next?
– Checkboxes based selectable legend items
– Chart series item style controls via legend
Demo | Source code
January 18th, 2009
This component extends the default TitleWindow component and add two very useful features which make the container resize able and movable. The AdvancedTitleWindow can be moved using the mouse drag on the titleBar and it can be resized using the mouse drag on the bottom right region.
Code:
<containers:AdvancedTitleWindow width="400" height="300"/>
Screenshot:

What’s next?
– Docking
– Minimize, Maximize options
– Selectable style patterns
Demo | Source code
January 4th, 2009
This version (0.1) of the DashedLineSeries component is an extension and implementation of the wonderful code posted on Quietly Scheming by Ely Greensfield. The component is an extension of a regular LineSeries except that it has a custom LineSeriesRenderer that draws a dashed line instead of a straight line.
Screen shot:
Code:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:visualization="net.srirangan.visualization.*">
<mx:Script><![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Month:"Jan", Profit:2000, Expenses:1500, Amount:450},
{Month:"Feb", Profit:1000, Expenses:200, Amount:600},
{Month:"Mar", Profit:1500, Expenses:500, Amount:300}
]);]]></mx:Script>
<mx:Panel title="Line Chart With Strokes">
<mx:LineChart id="myChart" dataProvider="{expenses}" showDataTips="true" seriesFilters="{new Array}">
<mx:horizontalAxis>
<mx:CategoryAxis dataProvider="{expenses}" categoryField="Month"/>
</mx:horizontalAxis>
<mx:series>
<visualization:DashedLineSeries yField="Profit" displayName="Profit"/>
<mx:LineSeries yField="Expenses" displayName="Expenses"/>
<mx:LineSeries yField="Amount" displayName="Amount"/>
</mx:series>
</mx:LineChart>
<mx:Legend dataProvider="{myChart}" direction="horizontal"/>
</mx:Panel>
</mx:Application>
What’s next?
– Pre defined multiple line patterns
– User defined line patterns
Demo | Source code