| Package | org.openzet.charts.chartClasses |
| Class | public class ChartControlPanel |
| Inheritance | ChartControlPanel mx.core.Container |
| Property | Defined by | ||
|---|---|---|---|
| horizontalGap : Number
Horizontal gap
| ChartControlPanel | ||
| selectedSeries : Series
Selected series
| ChartControlPanel | ||
| seriesKindComboHeight : Number
ComboBox's height
| ChartControlPanel | ||
| seriesKindComboWidth : Number
ComboBox's width
| ChartControlPanel | ||
| seriesStatusHeight : Number
Series status textInput's height
| ChartControlPanel | ||
| seriesStatusWidth : Number
Series status textInput's width
| ChartControlPanel | ||
| settingButtonHeight : Number
Setting button's height
| ChartControlPanel | ||
| settingButtonLabel : String
Setting button's label
| ChartControlPanel | ||
| settingButtonWidth : Number
Setting button's width
| ChartControlPanel | ||
| targetChart : CartesianChart
Property to specify the target chart.
| ChartControlPanel | ||
| Method | Defined by | ||
|---|---|---|---|
|
constructor()
| ChartControlPanel | ||
| Method | Defined by | ||
|---|---|---|---|
|
changeSeries():void
Changes series' type.
| ChartControlPanel | ||
|
searchSeriesKind():void
Updates currently selected series.
| ChartControlPanel | ||
| horizontalGap | property |
horizontalGap:Number [read-write]Horizontal gap
Implementation public function get horizontalGap():Number
public function set horizontalGap(value:Number):void
| selectedSeries | property |
selectedSeries:Series [read-write]Selected series
Implementation public function get selectedSeries():Series
public function set selectedSeries(value:Series):void
| seriesKindComboHeight | property |
seriesKindComboHeight:Number [read-write]ComboBox's height
Implementation public function get seriesKindComboHeight():Number
public function set seriesKindComboHeight(value:Number):void
| seriesKindComboWidth | property |
seriesKindComboWidth:Number [read-write]ComboBox's width
Implementation public function get seriesKindComboWidth():Number
public function set seriesKindComboWidth(value:Number):void
| seriesStatusHeight | property |
seriesStatusHeight:Number [read-write]Series status textInput's height
Implementation public function get seriesStatusHeight():Number
public function set seriesStatusHeight(value:Number):void
| seriesStatusWidth | property |
seriesStatusWidth:Number [read-write]Series status textInput's width
Implementation public function get seriesStatusWidth():Number
public function set seriesStatusWidth(value:Number):void
| settingButtonHeight | property |
settingButtonHeight:Number [read-write]Setting button's height
Implementation public function get settingButtonHeight():Number
public function set settingButtonHeight(value:Number):void
| settingButtonLabel | property |
settingButtonLabel:String [read-write]Setting button's label
Implementation public function get settingButtonLabel():String
public function set settingButtonLabel(value:String):void
| settingButtonWidth | property |
settingButtonWidth:Number [read-write]Setting button's width
Implementation public function get settingButtonWidth():Number
public function set settingButtonWidth(value:Number):void
| targetChart | property |
targetChart:CartesianChart [read-write]Property to specify the target chart. Only CartesianChart is supported.
Implementation public function get targetChart():CartesianChart
public function set targetChart(value:CartesianChart):void
| ChartControlPanel | () | constructor |
public function ChartControlPanel()constructor()
| changeSeries | () | method |
protected function changeSeries():voidChanges series' type.
| searchSeriesKind | () | method |
protected function searchSeriesKind():voidUpdates currently selected series.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:chartClasses="org.openzet.charts.chartClasses.*"
backgroundColor="0xFFFFFF">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var sampleAC:ArrayCollection = new ArrayCollection([
{index:1, data1:100, data2:200},
{index:2, data1:120, data2:300},
{index:3, data1:110, data2:210},
{index:4, data1:140, data2:220},
{index:5, data1:90, data2:210},
{index:6, data1:100, data2:240},
{index:7, data1:130, data2:210},
{index:8, data1:140, data2:200},
{index:9, data1:110, data2:180},
{index:10, data1:100, data2:220}]);
]]>
</mx:Script>
<chartClasses:ZetCartesianChart id="sampleChart" width="450" dataProvider="{sampleAC}" showSeriesBox="true"
checkBoxHorizontalAlign="right" checkBoxYPoint="400">
<chartClasses:series>
<mx:ColumnSeries yField="data2" displayName="Data 2" />
<mx:LineSeries yField="data1" displayName="Data 1" />
</chartClasses:series>
</chartClasses:ZetCartesianChart>
<mx:Spacer height="10" />
<chartClasses:ChartControlPanel targetChart="{sampleChart}" settingButtonLabel="setting" />
</mx:Application>