You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2014/09/04 23:32:24 UTC

git commit: [flex-asjs] [refs/heads/develop] - Replaced BarChartExample with ChartExample; compiles AS only for now.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 37cca4d56 -> c766dd19d


Replaced BarChartExample with ChartExample; compiles AS only for now.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c766dd19
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c766dd19
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c766dd19

Branch: refs/heads/develop
Commit: c766dd19ddb5df36d4bb173389e68a26d4e3526e
Parents: 37cca4d
Author: Peter Ent <pe...@apache.org>
Authored: Thu Sep 4 17:32:20 2014 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Thu Sep 4 17:32:20 2014 -0400

----------------------------------------------------------------------
 examples/BarChartExample/build.xml              |  47 -----
 .../BarChartExample/src/BarChartExample.mxml    |  37 ----
 examples/BarChartExample/src/MyInitialView.mxml | 166 ---------------
 examples/BarChartExample/src/README.txt         |  31 ---
 .../BarChartExample/src/models/ProductsModel.as |  49 -----
 .../BarChartExample/src/products/Product.as     |  43 ----
 examples/ChartExample/build.xml                 |  48 +++++
 examples/ChartExample/src/ChartExample.mxml     |  37 ++++
 examples/ChartExample/src/MyInitialView.mxml    | 204 +++++++++++++++++++
 examples/ChartExample/src/README.txt            |  31 +++
 .../ChartExample/src/models/ProductsModel.as    |  49 +++++
 examples/ChartExample/src/products/Product.as   |  45 ++++
 examples/build.xml                              |   4 +-
 13 files changed, 416 insertions(+), 375 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/BarChartExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/BarChartExample/build.xml b/examples/BarChartExample/build.xml
deleted file mode 100644
index f60f62b..0000000
--- a/examples/BarChartExample/build.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-<!--
-
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
--->
-
-
-<project name="barchartexample" default="main" basedir=".">
-    <property name="FLEXJS_HOME" location="../.."/>
-    <property name="example" value="BarChartExample" />
-    
-    <property file="${FLEXJS_HOME}/env.properties"/>
-    <property environment="env"/>
-    <property file="${FLEXJS_HOME}/build.properties"/>
-    <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
-    <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
-    <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
-    <property name="GOOG_HOME" value="${env.GOOG_HOME}"/>
-
-    <include file="${basedir}/../build_example.xml" />
-    
-    <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
-    </target>
-    
-    <target name="clean">
-        <delete dir="${basedir}/bin" failonerror="false" />
-        <delete dir="${basedir}/bin-debug" failonerror="false" />
-        <delete dir="${basedir}/bin-release" failonerror="false" />
-    </target>
-
-    
-    
-</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/BarChartExample/src/BarChartExample.mxml
----------------------------------------------------------------------
diff --git a/examples/BarChartExample/src/BarChartExample.mxml b/examples/BarChartExample/src/BarChartExample.mxml
deleted file mode 100644
index baa95f8..0000000
--- a/examples/BarChartExample/src/BarChartExample.mxml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!---
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
--->
-<basic:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
-				   xmlns:local="*"
-				   xmlns:models="models.*"
-				   xmlns:basic="library://ns.apache.org/flexjs/basic" 
-				   >
-	
-	<basic:valuesImpl>
-		<basic:SimpleCSSValuesImpl />
-	</basic:valuesImpl>
-	<basic:model>
-		<models:ProductsModel />
-	</basic:model>
-	<basic:initialView>
-		<local:MyInitialView />
-	</basic:initialView>
-</basic:Application>
-

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/BarChartExample/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/BarChartExample/src/MyInitialView.mxml b/examples/BarChartExample/src/MyInitialView.mxml
deleted file mode 100644
index 7717d0a..0000000
--- a/examples/BarChartExample/src/MyInitialView.mxml
+++ /dev/null
@@ -1,166 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
--->
-<basic:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
-				xmlns:basic="library://ns.apache.org/flexjs/basic"
-				xmlns:local="*" 
-				xmlns:models="models.*"
-				>
-	<fx:Script>
-		<![CDATA[
-			
-			
-		]]>
-	</fx:Script>
-	
-	<basic:Label id="output" x="450" y="30" width="100" />
-
-    <basic:ColumnChart id="columnChart" x="20" y="20" width="400" height="200">
-		<basic:beads>
-			<basic:ConstantBinding
-				sourceID="applicationModel"
-				sourcePropertyName="productList"
-				destinationPropertyName="dataProvider" />
-			<basic:HorizontalCategoryAxisBead categoryField="title" />
-			<basic:VerticalLinearAxisBead valueField="sales" />
-		</basic:beads>
-		<basic:series>
-			<basic:BarChartSeries yField="sales" 
-								  fillColor="0xFF964D">
-				<basic:itemRenderer>
-					<fx:Component>
-						<basic:BoxItemRenderer />                        
-					</fx:Component>
-				</basic:itemRenderer>
-			</basic:BarChartSeries>
-			<basic:BarChartSeries yField="detail" 
-								  fillColor="0x964DFF">
-				<basic:itemRenderer>
-					<fx:Component>
-						<basic:BoxItemRenderer />                        
-					</fx:Component>
-				</basic:itemRenderer>
-			</basic:BarChartSeries>
-		</basic:series>
-	</basic:ColumnChart>
-
-    <basic:BarChart id="barChart" x="500" y="20" width="400" height="300">
-		<basic:beads>
-			<basic:ConstantBinding
-				sourceID="applicationModel"
-				sourcePropertyName="productList"
-				destinationPropertyName="dataProvider" />
-			<basic:VerticalCategoryAxisBead categoryField="title" />
-			<basic:HorizontalLinearAxisBead valueField="sales" />
-		</basic:beads>
-		<basic:series>
-			<basic:BarChartSeries yField="sales" 
-								  fillColor="0xFF964D">
-				<basic:itemRenderer>
-					<fx:Component>
-						<basic:BoxItemRenderer />                        
-					</fx:Component>
-				</basic:itemRenderer>
-			</basic:BarChartSeries>
-			<basic:BarChartSeries yField="detail" 
-								  fillColor="0x964DFF">
-				<basic:itemRenderer>
-					<fx:Component>
-						<basic:BoxItemRenderer />                        
-					</fx:Component>
-				</basic:itemRenderer>
-			</basic:BarChartSeries>
-		</basic:series>
-	</basic:BarChart>
-
-    <basic:StackedColumnChart id="stackedChart" x="20" y="300" width="400" height="200">
-		<basic:beads>
-			<basic:ConstantBinding
-				sourceID="applicationModel"
-				sourcePropertyName="productList"
-				destinationPropertyName="dataProvider" />
-			<basic:HorizontalCategoryAxisBead categoryField="title" />
-		</basic:beads>
-		<basic:series>
-			<basic:BarChartSeries yField="sales" 
-								  fillColor="0xFF964D">
-				<basic:itemRenderer>
-					<fx:Component>
-						<basic:BoxItemRenderer />                        
-					</fx:Component>
-				</basic:itemRenderer>
-			</basic:BarChartSeries>
-			<basic:BarChartSeries yField="detail" 
-								  fillColor="0x964DFF">
-				<basic:itemRenderer>
-					<fx:Component>
-						<basic:BoxItemRenderer />                        
-					</fx:Component>
-				</basic:itemRenderer>
-			</basic:BarChartSeries>
-		</basic:series>
-	</basic:StackedColumnChart>
-
-    <basic:StackedBarChart id="stackedBarChart" x="500" y="400" width="400" height="300">
-		<basic:beads>
-			<basic:ConstantBinding
-				sourceID="applicationModel"
-				sourcePropertyName="productList"
-				destinationPropertyName="dataProvider" />
-			<basic:VerticalCategoryAxisBead categoryField="title" />
-		</basic:beads>
-		<basic:series>
-			<basic:BarChartSeries yField="sales" 
-								  fillColor="0xFF964D">
-				<basic:itemRenderer>
-					<fx:Component>
-						<basic:BoxItemRenderer />                        
-					</fx:Component>
-				</basic:itemRenderer>
-			</basic:BarChartSeries>
-			<basic:BarChartSeries yField="detail" 
-								  fillColor="0x964DFF">
-				<basic:itemRenderer>
-					<fx:Component>
-						<basic:BoxItemRenderer />                        
-					</fx:Component>
-				</basic:itemRenderer>
-			</basic:BarChartSeries>
-		</basic:series>
-	</basic:StackedBarChart>
-
-	<basic:PieChart id="pieChart" x="20" y="550" width="300" height="300">
-		<basic:beads>
-			<basic:ConstantBinding
-				sourceID="applicationModel"
-				sourcePropertyName="productList"
-				destinationPropertyName="dataProvider" />
-		</basic:beads>
-		<basic:series>
-			<basic:PieChartSeries dataField="sales">
-				<basic:itemRenderer>
-					<fx:Component>
-						<basic:WedgeItemRenderer />
-					</fx:Component>
-				</basic:itemRenderer>
-			</basic:PieChartSeries>
-		</basic:series>
-	</basic:PieChart>
-	
-</basic:ViewBase>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/BarChartExample/src/README.txt
----------------------------------------------------------------------
diff --git a/examples/BarChartExample/src/README.txt b/examples/BarChartExample/src/README.txt
deleted file mode 100644
index 9179bd3..0000000
--- a/examples/BarChartExample/src/README.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-This example demonstrates how to construct a BarChart and a PieChart. The BarChart
-is composed of two series while the PieChart has one (and only one) series.
-
-At this time, PieChart supports only one series, but BarChart can support several. 
-
-PieChart uses SVG on the HTML/JavaScript side to draw the wedges. This is still
-a "to do" item for BarChart, but it should be done. Further charts can follow
-the same pattern.
-
-PieChart uses a special ChartDataGroup (since all charts, so far, are based on
-List) that provides an SVG element on the JavaScript side. BarChart can make use
-of the same construct and have BoxItemRenderer create an SVG <rect> element.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/BarChartExample/src/models/ProductsModel.as
----------------------------------------------------------------------
diff --git a/examples/BarChartExample/src/models/ProductsModel.as b/examples/BarChartExample/src/models/ProductsModel.as
deleted file mode 100644
index 88f6662..0000000
--- a/examples/BarChartExample/src/models/ProductsModel.as
+++ /dev/null
@@ -1,49 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package models
-{
-	import org.apache.flex.events.EventDispatcher;
-	
-	import products.Product;
-	
-	public class ProductsModel extends EventDispatcher
-	{
-		public function ProductsModel()
-		{
-		}
-
-		private var _productList:Array = [
-			new Product("ps100","Widgets",44,200,"smallbluerect.jpg"),
-			new Product("tx200","Thingys",5,285,"smallgreenrect.jpg"),
-			new Product("rz300","Sprockets",80,105,"smallyellowrect.jpg"),
-			new Product("dh440","Doohickies",10,340,"smallredrect.jpg"),
-			new Product("ps220","Weejets",35,190,"smallorangerect.jpg")
-			];
-		public function get productList():Array
-		{
-			return _productList;
-		}
-
-		private var _labelFields:Array = [ "id", "title", "sales", "detail" ];
-		public function get labelFields():Array
-		{
-			return _labelFields;
-		}
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/BarChartExample/src/products/Product.as
----------------------------------------------------------------------
diff --git a/examples/BarChartExample/src/products/Product.as b/examples/BarChartExample/src/products/Product.as
deleted file mode 100644
index fd4b31e..0000000
--- a/examples/BarChartExample/src/products/Product.as
+++ /dev/null
@@ -1,43 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package products
-{
-	public class Product
-	{
-		public function Product(id:String,title:String,detail:Number,sales:Number,image:String)
-		{
-			this.id = id;
-			this.title = title;
-			this.detail = detail;
-			this.sales = sales;
-			this.image = image;
-		}
-		
-		public var id:String;
-		public var title:String;
-		public var detail:Number;
-		public var image:String;
-		public var sales:Number;
-		
-		public function toString():String
-		{
-			return title;
-		}
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/ChartExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/ChartExample/build.xml b/examples/ChartExample/build.xml
new file mode 100644
index 0000000..08968c7
--- /dev/null
+++ b/examples/ChartExample/build.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+
+<project name="chartexample" default="main" basedir=".">
+    <property name="FLEXJS_HOME" location="../.."/>
+    <property name="example" value="ChartExample" />
+    
+    <property file="${FLEXJS_HOME}/env.properties"/>
+    <property environment="env"/>
+    <property file="${FLEXJS_HOME}/build.properties"/>
+    <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+    <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
+    <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <property name="GOOG_HOME" value="${env.GOOG_HOME}"/>
+
+    <include file="${basedir}/../build_example.xml" />
+    
+<!-- temp remove build_example.compilejs -->
+    <target name="main" depends="clean,build_example.compile" description="Clean build of ${example}">
+    </target>
+    
+    <target name="clean">
+        <delete dir="${basedir}/bin" failonerror="false" />
+        <delete dir="${basedir}/bin-debug" failonerror="false" />
+        <delete dir="${basedir}/bin-release" failonerror="false" />
+    </target>
+
+    
+    
+</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/ChartExample/src/ChartExample.mxml
----------------------------------------------------------------------
diff --git a/examples/ChartExample/src/ChartExample.mxml b/examples/ChartExample/src/ChartExample.mxml
new file mode 100644
index 0000000..baa95f8
--- /dev/null
+++ b/examples/ChartExample/src/ChartExample.mxml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!---
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+-->
+<basic:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+				   xmlns:local="*"
+				   xmlns:models="models.*"
+				   xmlns:basic="library://ns.apache.org/flexjs/basic" 
+				   >
+	
+	<basic:valuesImpl>
+		<basic:SimpleCSSValuesImpl />
+	</basic:valuesImpl>
+	<basic:model>
+		<models:ProductsModel />
+	</basic:model>
+	<basic:initialView>
+		<local:MyInitialView />
+	</basic:initialView>
+</basic:Application>
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/ChartExample/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/ChartExample/src/MyInitialView.mxml b/examples/ChartExample/src/MyInitialView.mxml
new file mode 100644
index 0000000..d4531dd
--- /dev/null
+++ b/examples/ChartExample/src/MyInitialView.mxml
@@ -0,0 +1,204 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<basic:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
+				xmlns:basic="library://ns.apache.org/flexjs/basic"
+				xmlns:local="*" 
+				xmlns:models="models.*"
+				>
+	<fx:Script>
+		<![CDATA[
+			
+			
+		]]>
+	</fx:Script>
+	
+	<basic:Label id="output" x="51" y="30" width="100" />
+	
+	<basic:ColumnChart id="columnChart" x="20" y="20" width="400" height="200">
+		<basic:beads>
+			<basic:ConstantBinding
+				sourceID="applicationModel"
+				sourcePropertyName="productList"
+				destinationPropertyName="dataProvider" />
+			<basic:HorizontalCategoryAxisBead categoryField="title" />
+			<basic:VerticalLinearAxisBead valueField="sales2013" />
+		</basic:beads>
+		<basic:series>
+			<basic:ColumnSeries yField="sales2013" 
+						        fillColor="0xFF964D">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:BoxItemRenderer />                        
+					</fx:Component>
+				</basic:itemRenderer>
+			</basic:ColumnSeries>
+			<basic:ColumnSeries yField="sales2014" 
+							    fillColor="0x964DFF">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:BoxItemRenderer />                        
+					</fx:Component>
+				</basic:itemRenderer>
+			</basic:ColumnSeries>
+		</basic:series>
+	</basic:ColumnChart>
+	
+	<basic:BarChart id="barChart" x="500" y="20" width="400" height="300">
+		<basic:beads>
+			<basic:ConstantBinding
+				sourceID="applicationModel"
+				sourcePropertyName="productList"
+				destinationPropertyName="dataProvider" />
+			<basic:VerticalCategoryAxisBead categoryField="title" />
+			<basic:HorizontalLinearAxisBead valueField="sales2013" />
+		</basic:beads>
+		<basic:series>
+			<basic:BarSeries xField="sales2013" 
+						     fillColor="0xFF964D">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:BoxItemRenderer />                        
+					</fx:Component>
+				</basic:itemRenderer>
+			</basic:BarSeries>
+			<basic:BarSeries xField="sales2014" 
+							 fillColor="0x964DFF">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:BoxItemRenderer />                        
+					</fx:Component>
+				</basic:itemRenderer>
+			</basic:BarSeries>
+		</basic:series>
+	</basic:BarChart>
+	
+	<basic:StackedColumnChart id="stackedChart" x="20" y="300" width="400" height="200">
+		<basic:beads>
+			<basic:ConstantBinding
+				sourceID="applicationModel"
+				sourcePropertyName="productList"
+				destinationPropertyName="dataProvider" />
+			<basic:HorizontalCategoryAxisBead categoryField="title" />
+		</basic:beads>
+		<basic:series>
+			<basic:ColumnSeries yField="sales2013" 
+								fillColor="0xFF964D">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:BoxItemRenderer />                        
+					</fx:Component>
+				</basic:itemRenderer>
+			</basic:ColumnSeries>
+			<basic:ColumnSeries yField="sales2014" 
+								fillColor="0x964DFF">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:BoxItemRenderer />                        
+					</fx:Component>
+				</basic:itemRenderer>
+			</basic:ColumnSeries>
+		</basic:series>
+	</basic:StackedColumnChart>
+	
+	<basic:StackedBarChart id="stackedBarChart" x="500" y="400" width="400" height="300">
+		<basic:beads>
+			<basic:ConstantBinding
+				sourceID="applicationModel"
+				sourcePropertyName="productList"
+				destinationPropertyName="dataProvider" />
+			<basic:VerticalCategoryAxisBead categoryField="title" />
+		</basic:beads>
+		<basic:series>
+			<basic:BarSeries xField="sales2013" 
+							 fillColor="0xFF964D">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:BoxItemRenderer />                        
+					</fx:Component>
+				</basic:itemRenderer>
+			</basic:BarSeries>
+			<basic:BarSeries xField="sales2014" 
+							 fillColor="0x964DFF">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:BoxItemRenderer />                        
+					</fx:Component>
+				</basic:itemRenderer>
+			</basic:BarSeries>
+		</basic:series>
+	</basic:StackedBarChart>
+	
+	<basic:PieChart id="pieChart" x="20" y="550" width="300" height="300">
+		<basic:beads>
+			<basic:ConstantBinding
+				sourceID="applicationModel"
+				sourcePropertyName="productList"
+				destinationPropertyName="dataProvider" />
+		</basic:beads>
+		<basic:series>
+			<basic:PieSeries dataField="sales2013">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:WedgeItemRenderer />
+					</fx:Component>
+				</basic:itemRenderer>
+			</basic:PieSeries>
+		</basic:series>
+	</basic:PieChart>
+	
+	<basic:LineChart id="lineChart" x="500" y="750" width="400" height="200">
+		<basic:beads>
+			<basic:ConstantBinding
+				sourceID="applicationModel"
+				sourcePropertyName="productList"
+				destinationPropertyName="dataProvider" />
+			<basic:HorizontalLinearAxisBead valueField="detail" />
+			<basic:VerticalLinearAxisBead valueField="sales2013" />
+			<basic:LineChartLinearVsLinearLayout />
+		</basic:beads>
+		<basic:series>
+			<basic:LineSeries xField="detail" yField="sales2013" fillColor="0xFF964D" lineColor="0x994107" lineThickness="2">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:BoxItemRenderer />                        
+					</fx:Component>
+				</basic:itemRenderer>
+				<basic:lineSegmentRenderer>
+					<fx:Component>
+						<basic:LineSegmentItemRenderer />                       
+					</fx:Component>
+				</basic:lineSegmentRenderer>
+			</basic:LineSeries>
+			<basic:LineSeries xField="detail" yField="sales2014" fillColor="0x964DFF" lineColor="0x410799" lineThickness="2">
+				<basic:itemRenderer>
+					<fx:Component>
+						<basic:BoxItemRenderer />                        
+					</fx:Component>
+				</basic:itemRenderer>
+				<basic:lineSegmentRenderer>
+					<fx:Component>
+						<basic:LineSegmentItemRenderer />                       
+					</fx:Component>
+				</basic:lineSegmentRenderer>
+			</basic:LineSeries>
+		</basic:series>
+	</basic:LineChart>
+	
+</basic:ViewBase>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/ChartExample/src/README.txt
----------------------------------------------------------------------
diff --git a/examples/ChartExample/src/README.txt b/examples/ChartExample/src/README.txt
new file mode 100644
index 0000000..9179bd3
--- /dev/null
+++ b/examples/ChartExample/src/README.txt
@@ -0,0 +1,31 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+This example demonstrates how to construct a BarChart and a PieChart. The BarChart
+is composed of two series while the PieChart has one (and only one) series.
+
+At this time, PieChart supports only one series, but BarChart can support several. 
+
+PieChart uses SVG on the HTML/JavaScript side to draw the wedges. This is still
+a "to do" item for BarChart, but it should be done. Further charts can follow
+the same pattern.
+
+PieChart uses a special ChartDataGroup (since all charts, so far, are based on
+List) that provides an SVG element on the JavaScript side. BarChart can make use
+of the same construct and have BoxItemRenderer create an SVG <rect> element.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/ChartExample/src/models/ProductsModel.as
----------------------------------------------------------------------
diff --git a/examples/ChartExample/src/models/ProductsModel.as b/examples/ChartExample/src/models/ProductsModel.as
new file mode 100644
index 0000000..7539499
--- /dev/null
+++ b/examples/ChartExample/src/models/ProductsModel.as
@@ -0,0 +1,49 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package models
+{
+	import org.apache.flex.events.EventDispatcher;
+	
+	import products.Product;
+	
+	public class ProductsModel extends EventDispatcher
+	{
+		public function ProductsModel()
+		{
+		}
+
+		private var _productList:Array = [
+			new Product("tx200","Thingys",    5, 285,314,"smallgreenrect.jpg"),
+			new Product("dh440","Doohickies", 10,340,125,"smallredrect.jpg"),
+			new Product("ps220","Weejets",    35,190,240,"smallorangerect.jpg"),
+			new Product("ps100","Widgets",    44,200,82,"smallbluerect.jpg"),
+			new Product("rz300","Sprockets",  80,105,271,"smallyellowrect.jpg")
+			];
+		public function get productList():Array
+		{
+			return _productList;
+		}
+
+		private var _labelFields:Array = [ "id", "title", "sales2013", "sales2014", "detail" ];
+		public function get labelFields():Array
+		{
+			return _labelFields;
+		}
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/ChartExample/src/products/Product.as
----------------------------------------------------------------------
diff --git a/examples/ChartExample/src/products/Product.as b/examples/ChartExample/src/products/Product.as
new file mode 100644
index 0000000..4e8b5b4
--- /dev/null
+++ b/examples/ChartExample/src/products/Product.as
@@ -0,0 +1,45 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package products
+{
+	public class Product
+	{
+		public function Product(id:String,title:String,detail:Number,sales2013:Number, sales2014 ,image:String)
+		{
+			this.id = id;
+			this.title = title;
+			this.detail = detail;
+			this.sales2013 = sales2013;
+			this.sales2014 = sales2014;
+			this.image = image;
+		}
+		
+		public var id:String;
+		public var title:String;
+		public var detail:Number;
+		public var image:String;
+		public var sales2013:Number;
+		public var sales2014:Number;
+		
+		public function toString():String
+		{
+			return title;
+		}
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c766dd19/examples/build.xml
----------------------------------------------------------------------
diff --git a/examples/build.xml b/examples/build.xml
index 20d3509..cd0e363 100644
--- a/examples/build.xml
+++ b/examples/build.xml
@@ -94,7 +94,7 @@
         <ant dir="${basedir}/MobileTrader"/>
         <ant dir="${basedir}/StatesTest"/>
         <ant dir="${basedir}/StockQuote"/>
-        <ant dir="${basedir}/BarChartExample"/>
+        <ant dir="${basedir}/ChartExample"/>
         <ant dir="${basedir}/TodoListSampleApp"/>
     </target>
 	   
@@ -129,7 +129,7 @@
         <ant dir="${basedir}/MobileTrader" target="clean"/>
         <ant dir="${basedir}/StatesTest" target="clean"/>
         <ant dir="${basedir}/StockQuote" target="clean"/>
-        <ant dir="${basedir}/BarChartExample" target="clean"/>
+        <ant dir="${basedir}/ChartExample" target="clean"/>
         <ant dir="${basedir}/TodoListSampleApp" target="clean"/>
     </target>