areaitems.mxml

来自「QS我也没用过」· MXML 代码 · 共 32 行

MXML
32
字号
<?xml version="1.0" encoding="utf-8"?>
<ex:ExampleBase  xmlns:ex="examples.*" xmlns="http://www.adobe.com/2006/mxml" xmlns:s="support.*">

	<Script>
		<![CDATA[

			override public function get descriptions():Array {
				return ["Explore the styles that can affect how an area series displays its datapoints."];
			}

		]]>
	</Script>

	<Model id="dataSet" source="/data/sampleData.xml" />

	<ex:controls>
		<NumericStepper id="rad" value="5" minimum="0" maximum="20" />
		<s:StrokeButton id="itemStrokeUI" />
		<s:FillButton id="fillUI" />
	</ex:controls>

	<AreaChart id="chart" type="stacked" width="100%" height="100%" dataProvider="{dataSet.Sample}">
		<series>
			<AreaSeries yField="revenue" radius="{rad.value}" fill="{fillUI.value}" stroke="{itemStrokeUI.value}" itemRenderer="mx.charts.renderers.CircleItemRenderer"/>
			<AreaSeries yField="costs" radius="{rad.value}" fill="{fillUI.value}" stroke="{itemStrokeUI.value}" itemRenderer="mx.charts.renderers.DiamondItemRenderer"/>
		</series>
		<horizontalAxis>
			<CategoryAxis categoryField="month" />
		</horizontalAxis>
	</AreaChart>

</ex:ExampleBase>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?