lineform.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">

	<Script>
		<![CDATA[

			override public function get descriptions():Array {
				return ["browse the different forms a line series can take. A ghost of the line is always displayed in segment" +
						"form to show what the original data looks like."];
			}

		]]>
	</Script>

	<ex:controls>
		<Label text="form:" />
		<ComboBox id="lineForm" selectedItem="segment" dataProvider="{['segment','curve','horizontal','vertical','step','reverseStep']}" />
	</ex:controls>

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

	<LineChart id="chart" width="100%" height="100%" dataProvider="{dataSet.Sample}">
		<series>
			<LineSeries yField="revenue" alpha=".2" />
			<LineSeries yField="revenue" form="{lineForm.selectedItem}" />
		</series>
		<horizontalAxis>
			<CategoryAxis categoryField="month" />
		</horizontalAxis>
	</LineChart>

</ex:ExampleBase>

⌨️ 快捷键说明

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