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 <[email protected]>
Authored: Mon Dec 8 15:54:27 2014 -0500
Committer: Peter Ent <[email protected]>
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>

Reply via email to