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/12/08 21:54:22 UTC

git commit: [flex-asjs] [refs/heads/develop] - Updated ChartExample to reflect changes made to FlexJS chart package.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 414100493 -> 5712e6cd0


Updated ChartExample to reflect changes made to FlexJS chart package.


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

Branch: refs/heads/develop
Commit: 5712e6cd0ac83b905ed1cf549e83ef73b5a659f9
Parents: 4141004
Author: Peter Ent <pe...@apache.org>
Authored: Mon Dec 8 15:54:27 2014 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Mon Dec 8 15:54:27 2014 -0500

----------------------------------------------------------------------
 examples/ChartExample/src/ChartExample.mxml  |  2 +-
 examples/ChartExample/src/MyInitialView.mxml | 11 ++++++++++-
 examples/ChartExample/src/SpeedTestView.mxml |  4 ++--
 3 files changed, 13 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5712e6cd/examples/ChartExample/src/ChartExample.mxml
----------------------------------------------------------------------
diff --git a/examples/ChartExample/src/ChartExample.mxml b/examples/ChartExample/src/ChartExample.mxml
index 66b5ed9..baa95f8 100644
--- a/examples/ChartExample/src/ChartExample.mxml
+++ b/examples/ChartExample/src/ChartExample.mxml
@@ -31,7 +31,7 @@
 		<models:ProductsModel />
 	</basic:model>
 	<basic:initialView>
-		<local:SpeedTestView />
+		<local:MyInitialView />
 	</basic:initialView>
 </basic:Application>
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5712e6cd/examples/ChartExample/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/ChartExample/src/MyInitialView.mxml b/examples/ChartExample/src/MyInitialView.mxml
index dc84a34..c0f901e 100644
--- a/examples/ChartExample/src/MyInitialView.mxml
+++ b/examples/ChartExample/src/MyInitialView.mxml
@@ -21,10 +21,19 @@ limitations under the License.
 				xmlns:basic="library://ns.apache.org/flexjs/basic"
 				xmlns:local="*" 
 				xmlns:models="models.*"
+                initComplete="testit()"
 				>
 	<fx:Script>
 		<![CDATA[
 			
+			import models.ProductsModel;
+			
+			private function testit():void
+			{
+				var m:ProductsModel = applicationModel as ProductsModel;
+				m.generateWaves(50);
+				waveChart.dataProvider = m.wave1;
+			}
 			
 		]]>
 	</fx:Script>
@@ -260,7 +269,7 @@ limitations under the License.
 				sourcePropertyName="wave"
 				destinationPropertyName="dataProvider" />
 			<basic:HorizontalLinearAxisBead valueField="x" />
-			<basic:VerticalLinearAxisBead valueField="sin" />
+			<basic:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" />
 			<basic:LineChartLinearVsLinearLayout />
 		</basic:beads>
 		<basic:series>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5712e6cd/examples/ChartExample/src/SpeedTestView.mxml
----------------------------------------------------------------------
diff --git a/examples/ChartExample/src/SpeedTestView.mxml b/examples/ChartExample/src/SpeedTestView.mxml
index c1a23e1..8b410c5 100644
--- a/examples/ChartExample/src/SpeedTestView.mxml
+++ b/examples/ChartExample/src/SpeedTestView.mxml
@@ -103,7 +103,7 @@ limitations under the License.
 				sourcePropertyName="wave"
 				destinationPropertyName="dataProvider" />-->
 			<basic:HorizontalLinearAxisBead valueField="x" />
-			<basic:VerticalLinearAxisBead valueField="sin" />
+			<basic:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" />
 			<basic:LineChartLinearVsLinearLayout />
 		</basic:beads>
 		<basic:series>
@@ -141,7 +141,7 @@ limitations under the License.
 				sourcePropertyName="wave2"
 				destinationPropertyName="dataProvider" />-->
 			<basic:HorizontalLinearAxisBead valueField="x" />
-			<basic:VerticalLinearAxisBead valueField="sin" />
+			<basic:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" />
 			<basic:LineChartLinearVsLinearLayout />
 		</basic:beads>
 		<basic:series>