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/20 19:38:19 UTC
git commit: [flex-asjs] [refs/heads/develop] - Updated chart example
with new StackedChart.
Repository: flex-asjs
Updated Branches:
refs/heads/develop 806c28d75 -> d3f7f79d0
Updated chart example with new StackedChart.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d3f7f79d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d3f7f79d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d3f7f79d
Branch: refs/heads/develop
Commit: d3f7f79d025c1900ce8fc4ce250ecdef733400d6
Parents: 806c28d
Author: Peter Ent <pe...@apache.org>
Authored: Wed Aug 20 13:38:16 2014 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Aug 20 13:38:16 2014 -0400
----------------------------------------------------------------------
examples/BarChartExample/src/MyInitialView.mxml | 29 ++++++++++++++++++++
1 file changed, 29 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d3f7f79d/examples/BarChartExample/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/BarChartExample/src/MyInitialView.mxml b/examples/BarChartExample/src/MyInitialView.mxml
index 185dfae..173e8e0 100644
--- a/examples/BarChartExample/src/MyInitialView.mxml
+++ b/examples/BarChartExample/src/MyInitialView.mxml
@@ -59,6 +59,35 @@ limitations under the License.
</basic:series>
</basic:BarChart>
+ <basic:StackedChart id="stackedChart" x="500" y="20" width="400" height="200">
+ <basic:beads>
+ <basic:ConstantBinding
+ sourceID="applicationModel"
+ sourcePropertyName="productList"
+ destinationPropertyName="dataProvider" />
+ <basic:XAxisBead labelField="title" />
+ <basic:YAxisBead />
+ </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:StackedChart>
+
<basic:PieChart id="pieChart" x="20" y="300" width="300" height="300">
<basic:beads>
<basic:ConstantBinding