I just checked in a fix resolves the FlexJSJX build issue. After compiling the ChartExample, I can run it, but I see only the PieChart rendering correctly. All other charts have their fill properties set to none. This might be related to the fix I made. Can you please take a look at how to fix this?
Thanks, Om On Fri, Sep 19, 2014 at 4:35 PM, OmPrakash Muppirala <bigosma...@gmail.com> wrote: > On Fri, Sep 19, 2014 at 7:35 AM, Peter Ent <p...@adobe.com> wrote: > >> I went to flex-asjs/examples/ChartExample and ran "ant". I had no errors >> and I do not have anything to commit into the repro; I'm all sync'd up. >> >> This looks like an issue with basic-manifest.xml in projects/FlexJSJX, but >> ColumnChart, BarChart, etc. are all listed. I'll continue to look into it. >> >> > I dint notice this before, but it looks like the flexjsjx build is failing: > > flexjsjx: > > clean: > > compile: > [echo] Compiling libs/FlexJSJX.swc > [echo] FLEX_HOME: C:\Program Files (x86)\Adobe\Adobe Flash Builder > 4.6\sdks > \ApacheFlex4.12.1_AIR14 > [echo] FALCON_HOME: > C:\p\flex_os\workspace\flexroot\git\flex-falcon\compile > r\generated\dist\sdk > [compc] Loading configuration: > C:\p\flex_os\workspace\flexroot\git\flex-asjs > \frameworks\as\projects\FlexJSJX\compile-config.xml > [compc] > [compc] 92815 bytes written to > C:\p\flex_os\workspace\flexroot\git\flex-asjs > \frameworks\as\libs\FlexJSJX.swc in 4.471 seconds > > test: > [available] DEPRECATED - <available> used to override an existing property. > [available] Build file should not reuse the same property name for > different v > alues. > > clean: > > compile: > [echo] Compiling FlexUnitFlexJSApplication.swf > [echo] FLEX_HOME: C:\Program Files (x86)\Adobe\Adobe Flash Builder > 4.6\sdks > \ApacheFlex4.12.1_AIR14 > [echo] FALCON_HOME: > C:\p\flex_os\workspace\flexroot\git\flex-falcon\compile > r\generated\dist\sdk > [echo] FLEXUNIT_HOME: > C:\p\flex_os\workspace\flexroot\git\flex-flexunit > [echo] playerglobal.version: 11.1 > [mxmlc] Loading configuration: C:\Program Files (x86)\Adobe\Adobe > Flash Buil > der 4.6\sdks\ApacheFlex4.12.1_AIR14\frameworks\flex-config.xml > [mxmlc] > [mxmlc] > C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\projects > \FlexJSJX\tests\FlexUnitFlexJSApplication.mxml:21 > [mxmlc] Error: This tag could not be resolved to an ActionScript > class. It w > ill be ignored. > [mxmlc] <basic:Application xmlns:fx="http://ns.adobe.com/mxml/2009" > [mxmlc] ^ > [mxmlc] > > BUILD FAILED > C:\p\flex_os\workspace\flexroot\git\flex-asjs\build.xml:399: The following > error > occurred while executing this line: > C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\build.xml:80: > The fo > llowing error occurred while executing this line: > C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\build.xml:125: > The f > ollowing error occurred while executing this line: > > C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\projects\FlexJSJX\bu > ild.xml:35: The following error occurred while executing this line: > > C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\projects\FlexJSJX\te > sts\build.xml:94: mxmlc task failed. > > Total time: 31 seconds > > >> --peter >> >> On 9/18/14 6:01 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote: >> >> >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:4 >> >8: >> >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/C >> >>hartExample/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/C >> >>hartExample/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 >> >> >> >> >> >> >