Packageorg.openzet.charts.chartClasses
Classpublic class ZetCartesianChart
InheritanceZetCartesianChart Inheritance mx.charts.chartClasses.CartesianChart

Custom Cartesian chart to easily control series' visibility.

View the examples.



Public Properties
 PropertyDefined by
  checkBoxHeight : Number
height of checkBoxes.
ZetCartesianChart
  checkBoxHorizontalAlign : String
Alignment of checkBoxes.
ZetCartesianChart
  checkBoxHorizontalGap : Number
Horizontal gap between checkBoxes.
ZetCartesianChart
  checkBoxWidth : Number
width of checkBoxes.
ZetCartesianChart
  checkBoxYPoint : Number
y position of checkBoxes.
ZetCartesianChart
  showMarker : Boolean
Visibility of markers.
ZetCartesianChart
  showSeriesBox : Boolean
Flag to specify whether to show series control boxes.
ZetCartesianChart
  showVisibleBox : Boolean
Visibility of checkBoxes.
ZetCartesianChart
Public Methods
 MethodDefined by
  
ZetCartesianChart
Protected Methods
 MethodDefined by
  
Creates series' control boxes.
ZetCartesianChart
  
Adjust checkBoxes' position.
ZetCartesianChart
Property detail
checkBoxHeightproperty
checkBoxHeight:Number  [read-write]

height of checkBoxes.

Implementation
    public function get checkBoxHeight():Number
    public function set checkBoxHeight(value:Number):void
checkBoxHorizontalAlignproperty 
checkBoxHorizontalAlign:String  [read-write]

Alignment of checkBoxes.

Implementation
    public function get checkBoxHorizontalAlign():String
    public function set checkBoxHorizontalAlign(value:String):void
checkBoxHorizontalGapproperty 
checkBoxHorizontalGap:Number  [read-write]

Horizontal gap between checkBoxes.

Implementation
    public function get checkBoxHorizontalGap():Number
    public function set checkBoxHorizontalGap(value:Number):void
checkBoxWidthproperty 
checkBoxWidth:Number  [read-write]

width of checkBoxes.

Implementation
    public function get checkBoxWidth():Number
    public function set checkBoxWidth(value:Number):void
checkBoxYPointproperty 
checkBoxYPoint:Number  [read-write]

y position of checkBoxes.

Implementation
    public function get checkBoxYPoint():Number
    public function set checkBoxYPoint(value:Number):void
showMarkerproperty 
showMarker:Boolean  [read-write]

Visibility of markers.

Implementation
    public function get showMarker():Boolean
    public function set showMarker(value:Boolean):void
showSeriesBoxproperty 
showSeriesBox:Boolean  [read-write]

Flag to specify whether to show series control boxes.

Implementation
    public function get showSeriesBox():Boolean
    public function set showSeriesBox(value:Boolean):void
showVisibleBoxproperty 
showVisibleBox:Boolean  [read-write]

Visibility of checkBoxes.

Implementation
    public function get showVisibleBox():Boolean
    public function set showVisibleBox(value:Boolean):void
Constructor detail
ZetCartesianChart()constructor
public function ZetCartesianChart()
Method detail
createVisibleBox()method
protected function createVisibleBox():void

Creates series' control boxes.

updateCheckBoxLayout()method 
protected function updateCheckBoxLayout():void

Adjust checkBoxes' position.

Examples
ZetCartesianChartExample
<?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" />
</mx:Application>