API: charts Axis.js (YUI Library)

# Yahoo! UI Library

### Charts Widget 2.8.0r4

Yahoo! UI Library > charts > Axis.js (source view)
Search:
Filters Show Private Show Protected Show Deprecated

    /**
     * Defines a CartesianChart's vertical or horizontal axis.
     *
     * @namespace YAHOO.widget
     * @class Axis
     * @constructor
     */
    YAHOO.widget.Axis = function()
    {
    };

    YAHOO.widget.Axis.prototype =
    {
    	/**
    	 * The type of axis.
    	 *
    	 * @property type
    	 * @type String
    	 */
    	type: null,

    	/**
    	 * If true, the items on the axis will be drawn in opposite direction.
    	 *
    	 * @property reverse
    	 * @type Boolean
    	 */
    	reverse: false,

    	/**
    	 * A string reference to the globally-accessible function that may be called to
    	 * determine each of the label values for this axis. Also accepts function references.
    	 *
    	 * @property labelFunction
    	 * @type String
    	 */
    	labelFunction: null,

    	/**
    	 * The space, in pixels, between labels on an axis.
    	 *
    	 * @property labelSpacing
    	 * @type Number
    	 */
    	labelSpacing: 2,

    	/**
    	 * The text that will appear next to the axis to indicate information about the data that it displays.
    	 *
    	 * @property title
    	 * @type String
    	 */
    	title: null
    };

Copyright © 2009 Yahoo! Inc. All rights reserved.