Packagecom.amcharts.stock
Classpublic class CategoryAxesSettings
InheritanceCategoryAxesSettings Inheritance flash.events.EventDispatcher

Category axis settings. Will be applied to all category axes.

If a property has no default value and it is not defined, default styles and properties of CategoryAxis will be used. Check AmChartsBundle documentation to see these defaults.

You can set axis-specific properties and styles directly on CategoryAxis only if a property doesn't have default value. Note, properties set here have higher priority.



Public Properties
 PropertyDefined by
  autoGridCount : Boolean
Specifies whether number of gridCount is specified automatically, according to the axis size.
CategoryAxesSettings
  axisAlpha : Number
Axis opacity.
CategoryAxesSettings
  axisColor : Number
Axis color.
CategoryAxesSettings
  axisHeight : Number
The vertical space in pixels allocated for CategoryAxis values.
CategoryAxesSettings
  axisThickness : Number
Thickness of the axis.
CategoryAxesSettings
  color : Number
Text color.
CategoryAxesSettings
  dashLength : Number
Length of a dash.
CategoryAxesSettings
  dateFormats : Array
Array of date format objects.
CategoryAxesSettings
  equalSpacing : Boolean
If you want data points to be placed at equal intervals (omiting dates with no data), set equalSpacing to true.
CategoryAxesSettings
  fillAlpha : Number
Fill opacity.
CategoryAxesSettings
  fillColor : Number
Fill color.
CategoryAxesSettings
  fontSize : Number
Text size.
CategoryAxesSettings
  gridAlpha : Number
Opacity of grid lines.
CategoryAxesSettings
  gridColor : Number
Color of grid lines.
CategoryAxesSettings
  gridCount : Number
Approximate number of grid lines.
CategoryAxesSettings
  gridThickness : Number
Thickness of grid lines.
CategoryAxesSettings
  groupToPeriods : Array
Periods to which data will be gruoped in case there are more data items in the selected period than specified in maxSeries property.
CategoryAxesSettings
  inside : Boolean
Specifies whether values should be placed inside or outside of plot area.
CategoryAxesSettings
  labelRotation : Number
Rotation angle of a label.
CategoryAxesSettings
  maxSeries : Number
Maximum series shown at a time.
CategoryAxesSettings
  minPeriod : String
Specifies the shortest period of your data.
CategoryAxesSettings
  position : String
Position of the axis.
CategoryAxesSettings
  startOnAxis : Boolean
Specifies whether the graph should start on axis or not.
CategoryAxesSettings
  tickLength : Number
Tick length.
CategoryAxesSettings
Public Methods
 MethodDefined by
  
CategoryAxesSettings
Property detail
autoGridCountproperty
autoGridCount:Boolean  [read-write]

Specifies whether number of gridCount is specified automatically, according to the axis size.

The default value is true.

Implementation
    public function get autoGridCount():Boolean
    public function set autoGridCount(value:Boolean):void
axisAlphaproperty 
axisAlpha:Number  [read-write]

Axis opacity.

Implementation
    public function get axisAlpha():Number
    public function set axisAlpha(value:Number):void
axisColorproperty 
axisColor:Number  [read-write]

Axis color.

Implementation
    public function get axisColor():Number
    public function set axisColor(value:Number):void
axisHeightproperty 
axisHeight:Number  [read-write]

The vertical space in pixels allocated for CategoryAxis values.

The default value is 28.

Implementation
    public function get axisHeight():Number
    public function set axisHeight(value:Number):void
axisThicknessproperty 
axisThickness:Number  [read-write]

Thickness of the axis.

Implementation
    public function get axisThickness():Number
    public function set axisThickness(value:Number):void
colorproperty 
color:Number  [read-write]

Text color.

Implementation
    public function get color():Number
    public function set color(value:Number):void
dashLengthproperty 
dashLength:Number  [read-write]

Length of a dash. By default, the grid line is not dashed.

Implementation
    public function get dashLength():Number
    public function set dashLength(value:Number):void
dateFormatsproperty 
dateFormats:Array  [read-write]

Array of date format objects. Date format object must have "period" and "format" items. Available periods are: fff - millisecond, ss - second, mm - minute, hh - hour, DD - date, MM - month, YYYY - year. format can contain any string supported by mx.formatters.DateFormatter class. For example: {period:"DD", format:"MMM DD"}

Implementation
    public function get dateFormats():Array
    public function set dateFormats(value:Array):void
equalSpacingproperty 
equalSpacing:Boolean  [read-write]

If you want data points to be placed at equal intervals (omiting dates with no data), set equalSpacing to true.

The default value is false.

Implementation
    public function get equalSpacing():Boolean
    public function set equalSpacing(value:Boolean):void
fillAlphaproperty 
fillAlpha:Number  [read-write]

Fill opacity. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills.

Implementation
    public function get fillAlpha():Number
    public function set fillAlpha(value:Number):void
fillColorproperty 
fillColor:Number  [read-write]

Fill color. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills.

Implementation
    public function get fillColor():Number
    public function set fillColor(value:Number):void
fontSizeproperty 
fontSize:Number  [read-write]

Text size.

Implementation
    public function get fontSize():Number
    public function set fontSize(value:Number):void
gridAlphaproperty 
gridAlpha:Number  [read-write]

Opacity of grid lines.

Implementation
    public function get gridAlpha():Number
    public function set gridAlpha(value:Number):void
gridColorproperty 
gridColor:Number  [read-write]

Color of grid lines.

Implementation
    public function get gridColor():Number
    public function set gridColor(value:Number):void
gridCountproperty 
gridCount:Number  [read-write]

Approximate number of grid lines.

The default value is 10.

Implementation
    public function get gridCount():Number
    public function set gridCount(value:Number):void
gridThicknessproperty 
gridThickness:Number  [read-write]

Thickness of grid lines.

Implementation
    public function get gridThickness():Number
    public function set gridThickness(value:Number):void
groupToPeriodsproperty 
groupToPeriods:Array  [read-write]

Periods to which data will be gruoped in case there are more data items in the selected period than specified in maxSeries property.

The default value is "ss", "10ss", "30ss", "mm", "10mm", "30mm", "hh", "DD", "WW", "MM", "YYYY";.

Implementation
    public function get groupToPeriods():Array
    public function set groupToPeriods(value:Array):void
insideproperty 
inside:Boolean  [read-write]

Specifies whether values should be placed inside or outside of plot area.

Implementation
    public function get inside():Boolean
    public function set inside(value:Boolean):void
labelRotationproperty 
labelRotation:Number  [read-write]

Rotation angle of a label. In case you rotate axis' values, you should embed fonts.

Implementation
    public function get labelRotation():Number
    public function set labelRotation(value:Number):void
maxSeriesproperty 
maxSeries:Number  [read-write]

Maximum series shown at a time. In case there are more data points in the selection than maxSeries, the chart will group data to longer periods, for example - you have 250 days in the selection, and maxSeries is 150 - the chart will group data to weeks.

The default value is 150.

Implementation
    public function get maxSeries():Number
    public function set maxSeries(value:Number):void
minPeriodproperty 
minPeriod:String  [read-write]

Specifies the shortest period of your data.

  • fff - millisecond
  • ss - second
  • mm - minute
  • hh - hour
  • DD - day
  • MM - month
  • YYYY - year
  • The default value is DD.

    Implementation
        public function get minPeriod():String
        public function set minPeriod(value:String):void
    positionproperty 
    position:String  [read-write]

    Position of the axis.

    Implementation
        public function get position():String
        public function set position(value:String):void
    startOnAxisproperty 
    startOnAxis:Boolean  [read-write]

    Specifies whether the graph should start on axis or not. In case you display columns, it is recommended to set this to false. startOnAxis can be set to true only if equalSpacing is set to true.

    Implementation
        public function get startOnAxis():Boolean
        public function set startOnAxis(value:Boolean):void
    tickLengthproperty 
    tickLength:Number  [read-write]

    Tick length.

    The default value is 0.

    Implementation
        public function get tickLength():Number
        public function set tickLength(value:Number):void
    Constructor detail
    CategoryAxesSettings()constructor
    public function CategoryAxesSettings()