Packageorg.openzet.charts.chartClasses
Classpublic class ChartControlPanel
InheritanceChartControlPanel Inheritance mx.core.Container

ChartControlPanel class dynamically changes series of a target chart control. Yet you need to note that this class is used only for CartesianChart type.

View the examples.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
constructor()
ChartControlPanel
Protected Methods
 MethodDefined by
  
changeSeries():void
Changes series' type.
ChartControlPanel
  
Updates currently selected series.
ChartControlPanel
Property detail
horizontalGapproperty
horizontalGap:Number  [read-write]

Horizontal gap

Implementation
    public function get horizontalGap():Number
    public function set horizontalGap(value:Number):void
selectedSeriesproperty 
selectedSeries:Series  [read-write]

Selected series

Implementation
    public function get selectedSeries():Series
    public function set selectedSeries(value:Series):void
seriesKindComboHeightproperty 
seriesKindComboHeight:Number  [read-write]

ComboBox's height

Implementation
    public function get seriesKindComboHeight():Number
    public function set seriesKindComboHeight(value:Number):void
seriesKindComboWidthproperty 
seriesKindComboWidth:Number  [read-write]

ComboBox's width

Implementation
    public function get seriesKindComboWidth():Number
    public function set seriesKindComboWidth(value:Number):void
seriesStatusHeightproperty 
seriesStatusHeight:Number  [read-write]

Series status textInput's height

Implementation
    public function get seriesStatusHeight():Number
    public function set seriesStatusHeight(value:Number):void
seriesStatusWidthproperty 
seriesStatusWidth:Number  [read-write]

Series status textInput's width

Implementation
    public function get seriesStatusWidth():Number
    public function set seriesStatusWidth(value:Number):void
settingButtonHeightproperty 
settingButtonHeight:Number  [read-write]

Setting button's height

Implementation
    public function get settingButtonHeight():Number
    public function set settingButtonHeight(value:Number):void
settingButtonLabelproperty 
settingButtonLabel:String  [read-write]

Setting button's label

Implementation
    public function get settingButtonLabel():String
    public function set settingButtonLabel(value:String):void
settingButtonWidthproperty 
settingButtonWidth:Number  [read-write]

Setting button's width

Implementation
    public function get settingButtonWidth():Number
    public function set settingButtonWidth(value:Number):void
targetChartproperty 
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
Constructor detail
ChartControlPanel()constructor
public function ChartControlPanel()

constructor()

Method detail
changeSeries()method
protected function changeSeries():void

Changes series' type.

searchSeriesKind()method 
protected function searchSeriesKind():void

Updates currently selected series.

Examples
ChartControlPanelExample
<?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>