Peter, I took the latest code and tried to compile the ChartExample project, I am seeing these errors: Can you please take a look?
clean: [delete] Deleting directory C:\p\flex_os\workspace\flexroot\git\flex-asjs\exa mples\ChartExample\bin [delete] Deleting directory C:\p\flex_os\workspace\flexroot\git\flex-asjs\exa mples\ChartExample\bin-debug build_example.compile: [echo] Compiling ChartExample.swf [echo] FLEX_HOME: C:\p\flex_os\workspace\flexroot\git\flex-asjs [mxmlc] Loading configuration: C:\p\flex_os\workspace\flexroot\git\flex-asjs \frameworks\flex-config.xml [mxmlc] [mxmlc] C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\ChartExample\ src\MyInitialView.mxml:34 [mxmlc] Error: This tag is unexpected. It will be ignored. [mxmlc] <basic:ColumnChart id="columnChart" x="20" y="20" width="400" he ight="200"> [mxmlc] ^ [mxmlc] [mxmlc] C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\ChartExample\ src\MyInitialView.mxml:69 [mxmlc] Error: This tag is unexpected. It will be ignored. [mxmlc] <basic:BarChart id="barChart" x="500" y="20" width="400" height= "300"> [mxmlc] ^ [mxmlc] [mxmlc] C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\ChartExample\ src\MyInitialView.mxml:104 [mxmlc] Error: This tag is unexpected. It will be ignored. [mxmlc] <basic:StackedColumnChart id="stackedChart" x="20" y="300" width ="400" height="200"> [mxmlc] ^ [mxmlc] [mxmlc] C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\ChartExample\ src\MyInitialView.mxml:144 [mxmlc] Error: This tag is unexpected. It will be ignored. [mxmlc] <basic:StackedBarChart id="stackedBarChart" x="500" y="400" widt h="400" height="300"> [mxmlc] ^ [mxmlc] [mxmlc] C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\ChartExample\ src\MyInitialView.mxml:184 [mxmlc] Error: This tag is unexpected. It will be ignored. [mxmlc] <basic:PieChart id="pieChart" x="20" y="550" width="200" height= "200"> [mxmlc] ^ [mxmlc] [mxmlc] C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\ChartExample\ src\MyInitialView.mxml:202 [mxmlc] Error: This tag is unexpected. It will be ignored. [mxmlc] <basic:LineChart id="lineChart" x="500" y="750" width="400" heig ht="200"> [mxmlc] ^ [mxmlc] [mxmlc] C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\ChartExample\ src\MyInitialView.mxml:256 [mxmlc] Error: This tag is unexpected. It will be ignored. [mxmlc] <basic:LineChart id="waveChart" x="20" y="800" width="400" heigh t="200"> [mxmlc] ^ [mxmlc] BUILD FAILED C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\build_example.xml:48: mxm lc task failed. Total time: 26 seconds C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\ChartExample> On Thu, Sep 18, 2014 at 10:33 AM, <p...@apache.org> wrote: > Repository: flex-asjs > Updated Branches: > refs/heads/develop 405b7e5cd -> 8e46d2e18 > > > Update ChartExample with recent changes 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/8e46d2e1 > Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/8e46d2e1 > Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/8e46d2e1 > > Branch: refs/heads/develop > Commit: 8e46d2e1840acf2c81fb34cf66db15722952076d > Parents: 405b7e5 > Author: Peter Ent <p...@apache.org> > Authored: Thu Sep 18 13:33:28 2014 -0400 > Committer: Peter Ent <p...@apache.org> > Committed: Thu Sep 18 13:33:28 2014 -0400 > > ---------------------------------------------------------------------- > examples/ChartExample/src/MyInitialView.mxml | 152 +++++++++++++++---- > .../ChartExample/src/models/ProductsModel.as | 25 +++ > 2 files changed, 145 insertions(+), 32 deletions(-) > ---------------------------------------------------------------------- > > > > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8e46d2e1/examples/ChartExample/src/MyInitialView.mxml > ---------------------------------------------------------------------- > diff --git a/examples/ChartExample/src/MyInitialView.mxml > b/examples/ChartExample/src/MyInitialView.mxml > index d4531dd..dc84a34 100644 > --- a/examples/ChartExample/src/MyInitialView.mxml > +++ b/examples/ChartExample/src/MyInitialView.mxml > @@ -29,7 +29,7 @@ limitations under the License. > ]]> > </fx:Script> > > - <basic:Label id="output" x="51" y="30" width="100" /> > + <basic:Label id="output" x="50" y="30" width="100" /> > > <basic:ColumnChart id="columnChart" x="20" y="20" width="400" > height="200"> > <basic:beads> > @@ -41,19 +41,25 @@ limitations under the License. > <basic:VerticalLinearAxisBead > valueField="sales2013" /> > </basic:beads> > <basic:series> > - <basic:ColumnSeries yField="sales2013" > - > fillColor="0xFF964D"> > + <basic:ColumnSeries yField="sales2013"> > <basic:itemRenderer> > <fx:Component> > - <basic:BoxItemRenderer /> > + <basic:BoxItemRenderer> > + <basic:fill> > + > <basic:SolidColor color="#FF964D" alpha="1.0" /> > + </basic:fill> > + </basic:BoxItemRenderer> > </fx:Component> > </basic:itemRenderer> > </basic:ColumnSeries> > - <basic:ColumnSeries yField="sales2014" > - > fillColor="0x964DFF"> > + <basic:ColumnSeries yField="sales2014"> > <basic:itemRenderer> > <fx:Component> > - <basic:BoxItemRenderer /> > + <basic:BoxItemRenderer> > + <basic:fill> > + > <basic:SolidColor color="#964DFF" alpha="1.0" /> > + </basic:fill> > + </basic:BoxItemRenderer> > </fx:Component> > </basic:itemRenderer> > </basic:ColumnSeries> > @@ -70,19 +76,25 @@ limitations under the License. > <basic:HorizontalLinearAxisBead > valueField="sales2013" /> > </basic:beads> > <basic:series> > - <basic:BarSeries xField="sales2013" > - fillColor="0xFF964D"> > + <basic:BarSeries xField="sales2013"> > <basic:itemRenderer> > <fx:Component> > - <basic:BoxItemRenderer /> > + <basic:BoxItemRenderer> > + <basic:fill> > + > <basic:SolidColor color="#FF964D" alpha="1.0" /> > + </basic:fill> > + </basic:BoxItemRenderer> > </fx:Component> > </basic:itemRenderer> > </basic:BarSeries> > - <basic:BarSeries xField="sales2014" > - > fillColor="0x964DFF"> > + <basic:BarSeries xField="sales2014"> > <basic:itemRenderer> > <fx:Component> > - <basic:BoxItemRenderer /> > + <basic:BoxItemRenderer> > + <basic:fill> > + > <basic:SolidColor color="#964DFF" alpha="1.0" /> > + </basic:fill> > + </basic:BoxItemRenderer> > </fx:Component> > </basic:itemRenderer> > </basic:BarSeries> > @@ -98,19 +110,31 @@ limitations under the License. > <basic:HorizontalCategoryAxisBead > categoryField="title" /> > </basic:beads> > <basic:series> > - <basic:ColumnSeries yField="sales2013" > - > fillColor="0xFF964D"> > + <basic:ColumnSeries yField="sales2013"> > <basic:itemRenderer> > <fx:Component> > - <basic:BoxItemRenderer /> > + <basic:BoxItemRenderer> > + <basic:fill> > + > <basic:SolidColor color="#FF964D" alpha="0.5" /> > + </basic:fill> > + <basic:stroke> > + > <basic:SolidColorStroke color="#FF964D" weight="2" /> > + </basic:stroke> > + </basic:BoxItemRenderer> > </fx:Component> > </basic:itemRenderer> > </basic:ColumnSeries> > - <basic:ColumnSeries yField="sales2014" > - > fillColor="0x964DFF"> > + <basic:ColumnSeries yField="sales2014"> > <basic:itemRenderer> > <fx:Component> > - <basic:BoxItemRenderer /> > + <basic:BoxItemRenderer> > + <basic:fill> > + > <basic:SolidColor color="#964DFF" alpha="0.5" /> > + </basic:fill> > + <basic:stroke> > + > <basic:SolidColorStroke color="#964DFF" weight="2" /> > + </basic:stroke> > + </basic:BoxItemRenderer> > </fx:Component> > </basic:itemRenderer> > </basic:ColumnSeries> > @@ -126,26 +150,38 @@ limitations under the License. > <basic:VerticalCategoryAxisBead > categoryField="title" /> > </basic:beads> > <basic:series> > - <basic:BarSeries xField="sales2013" > - > fillColor="0xFF964D"> > + <basic:BarSeries xField="sales2013"> > <basic:itemRenderer> > <fx:Component> > - <basic:BoxItemRenderer /> > + <basic:BoxItemRenderer> > + <basic:fill> > + > <basic:SolidColor color="#FF964D" alpha="0.5" /> > + </basic:fill> > + <basic:stroke> > + > <basic:SolidColorStroke color="#FF964D" weight="2" /> > + </basic:stroke> > + </basic:BoxItemRenderer> > </fx:Component> > </basic:itemRenderer> > </basic:BarSeries> > - <basic:BarSeries xField="sales2014" > - > fillColor="0x964DFF"> > + <basic:BarSeries xField="sales2014"> > <basic:itemRenderer> > <fx:Component> > - <basic:BoxItemRenderer /> > + <basic:BoxItemRenderer> > + <basic:fill> > + > <basic:SolidColor color="#964DFF" alpha="0.5" /> > + </basic:fill> > + <basic:stroke> > + > <basic:SolidColorStroke color="#964DFF" weight="2" /> > + </basic:stroke> > + </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:PieChart id="pieChart" x="20" y="550" width="200" > height="200"> > <basic:beads> > <basic:ConstantBinding > sourceID="applicationModel" > @@ -174,27 +210,79 @@ limitations under the License. > <basic:LineChartLinearVsLinearLayout /> > </basic:beads> > <basic:series> > - <basic:LineSeries xField="detail" > yField="sales2013" fillColor="0xFF964D" lineColor="0x994107" > lineThickness="2"> > + <basic:LineSeries xField="detail" > yField="sales2013"> > <basic:itemRenderer> > <fx:Component> > - <basic:BoxItemRenderer /> > + <basic:BoxItemRenderer> > + <basic:fill> > + > <basic:SolidColor color="#FF964D" alpha="1" /> > + </basic:fill> > + </basic:BoxItemRenderer> > </fx:Component> > </basic:itemRenderer> > <basic:lineSegmentRenderer> > <fx:Component> > - > <basic:LineSegmentItemRenderer /> > + > <basic:LineSegmentItemRenderer> > + <basic:stroke> > + > <basic:SolidColorStroke color="#FF964D" weight="3" alpha="0.8" /> > + </basic:stroke> > + > </basic:LineSegmentItemRenderer> > </fx:Component> > </basic:lineSegmentRenderer> > </basic:LineSeries> > - <basic:LineSeries xField="detail" > yField="sales2014" fillColor="0x964DFF" lineColor="0x410799" > lineThickness="2"> > + <basic:LineSeries xField="detail" > yField="sales2014"> > <basic:itemRenderer> > <fx:Component> > - <basic:BoxItemRenderer /> > + <basic:BoxItemRenderer> > + <basic:fill> > + > <basic:SolidColor color="#964DFF" alpha="1" /> > + </basic:fill> > + </basic:BoxItemRenderer> > </fx:Component> > </basic:itemRenderer> > <basic:lineSegmentRenderer> > <fx:Component> > - > <basic:LineSegmentItemRenderer /> > + > <basic:LineSegmentItemRenderer> > + <basic:stroke> > + > <basic:SolidColorStroke color="#964DFF" weight="3" alpha="0.8" /> > + </basic:stroke> > + > </basic:LineSegmentItemRenderer> > + </fx:Component> > + </basic:lineSegmentRenderer> > + </basic:LineSeries> > + </basic:series> > + </basic:LineChart> > + > + <basic:LineChart id="waveChart" x="20" y="800" width="400" > height="200"> > + <basic:beads> > + <basic:ConstantBinding > + sourceID="applicationModel" > + sourcePropertyName="wave" > + destinationPropertyName="dataProvider" /> > + <basic:HorizontalLinearAxisBead valueField="x" /> > + <basic:VerticalLinearAxisBead valueField="sin" /> > + <basic:LineChartLinearVsLinearLayout /> > + </basic:beads> > + <basic:series> > + <basic:LineSeries xField="x" yField="sin"> > + <basic:lineSegmentRenderer> > + <fx:Component> > + > <basic:LineSegmentItemRenderer> > + <basic:stroke> > + > <basic:SolidColorStroke color="#964DFF" weight="5" alpha="1" /> > + </basic:stroke> > + > </basic:LineSegmentItemRenderer> > + </fx:Component> > + </basic:lineSegmentRenderer> > + </basic:LineSeries> > + <basic:LineSeries xField="x" yField="cos"> > + <basic:lineSegmentRenderer> > + <fx:Component> > + > <basic:LineSegmentItemRenderer> > + <basic:stroke> > + > <basic:SolidColorStroke color="#FF964D" weight="5" alpha="1" /> > + </basic:stroke> > + > </basic:LineSegmentItemRenderer> > </fx:Component> > </basic:lineSegmentRenderer> > </basic:LineSeries> > > > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8e46d2e1/examples/ChartExample/src/models/ProductsModel.as > ---------------------------------------------------------------------- > diff --git a/examples/ChartExample/src/models/ProductsModel.as > b/examples/ChartExample/src/models/ProductsModel.as > index 7539499..ee5a5e1 100644 > --- a/examples/ChartExample/src/models/ProductsModel.as > +++ b/examples/ChartExample/src/models/ProductsModel.as > @@ -26,6 +26,7 @@ package models > { > public function ProductsModel() > { > + generateWaves(360); > } > > private var _productList:Array = [ > @@ -45,5 +46,29 @@ package models > { > return _labelFields; > } > + > + private var _wave:Array; > + > + private function generateWaves(numPoints:int):void > + { > + _wave = []; > + > + var angleIncr:Number = 360/numPoints; > + var angle:Number = 0; > + > + for (var i:int=0; i < numPoints; i++) > + { > + var p:Object = {x:i, > + sin:Math.sin(Math.PI/180*angle), > + > cos:Math.cos(Math.PI/180*angle)}; > + angle += angleIncr; > + _wave.push(p); > + } > + } > + > + public function get wave():Array > + { > + return _wave; > + } > } > } > \ No newline at end of file > >