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/08/26 14:03:24 UTC

git commit: [flex-asjs] [refs/heads/develop] - Updated BarChartExample to reflect new changes in the SDK.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 5a6e15eb3 -> 0b90e2ffa


Updated BarChartExample to reflect new changes in the SDK.


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

Branch: refs/heads/develop
Commit: 0b90e2ffa1b4fbb9123157d3b92cb4564b907faf
Parents: 5a6e15e
Author: Peter Ent <pe...@apache.org>
Authored: Tue Aug 26 08:03:19 2014 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Tue Aug 26 08:03:19 2014 -0400

----------------------------------------------------------------------
 examples/BarChartExample/src/MyInitialView.mxml | 75 +++++++++++++++++---
 1 file changed, 65 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0b90e2ff/examples/BarChartExample/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/BarChartExample/src/MyInitialView.mxml b/examples/BarChartExample/src/MyInitialView.mxml
index 173e8e0..9581c0d 100644
--- a/examples/BarChartExample/src/MyInitialView.mxml
+++ b/examples/BarChartExample/src/MyInitialView.mxml
@@ -30,14 +30,42 @@ limitations under the License.
 	</fx:Script>
 	
 	<basic:Label id="output" x="450" y="30" width="100" />
-	
-	<basic:BarChart id="barChart" x="20" y="20" width="400" height="200">
+
+    <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: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:XAxisBead labelField="title" />
+			<basic:VerticalCategoryAxisBead categoryField="title" />
 		</basic:beads>
 		<basic:series>
 			<basic:BarChartSeries yField="sales" 
@@ -58,15 +86,14 @@ limitations under the License.
 			</basic:BarChartSeries>
 		</basic:series>
 	</basic:BarChart>
-	
-	<basic:StackedChart id="stackedChart" x="500" y="20" width="400" height="200">
+
+    <basic:StackedColumnChart id="stackedChart" x="20" y="300" width="400" height="200">
 		<basic:beads>
 			<basic:ConstantBinding
 				sourceID="applicationModel"
 				sourcePropertyName="productList"
 				destinationPropertyName="dataProvider" />
-			<basic:XAxisBead labelField="title" />
-			<basic:YAxisBead />
+			<basic:HorizontalCategoryAxisBead categoryField="title" />
 		</basic:beads>
 		<basic:series>
 			<basic:BarChartSeries yField="sales" 
@@ -86,9 +113,37 @@ limitations under the License.
 				</basic:itemRenderer>
 			</basic:BarChartSeries>
 		</basic:series>
-	</basic:StackedChart>
-	
-	<basic:PieChart id="pieChart" x="20" y="300" width="300" height="300">
+	</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"