~ubuntu-branches/ubuntu/utopic/moodle/utopic

« back to all changes in this revision

Viewing changes to lib/yuilib/3.13.0/series-area-stacked/series-area-stacked-debug.js

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-05-12 16:10:38 UTC
  • mfrom: (36.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140512161038-puyqf65k4e0s8ytz
Tags: 2.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
YUI 3.13.0 (build 508226d)
 
3
Copyright 2013 Yahoo! Inc. All rights reserved.
 
4
Licensed under the BSD License.
 
5
http://yuilibrary.com/license/
 
6
*/
 
7
 
 
8
YUI.add('series-area-stacked', function (Y, NAME) {
 
9
 
 
10
/**
 
11
 * Provides functionality for creating a stacked area series.
 
12
 *
 
13
 * @module charts
 
14
 * @submodule series-area-stacked
 
15
 */
 
16
/**
 
17
 * StackedAreaSeries area fills to display data showing its contribution to a whole.
 
18
 *
 
19
 * @class StackedAreaSeries
 
20
 * @extends AreaSeries
 
21
 * @uses StackingUtil
 
22
 * @constructor
 
23
 * @param {Object} config (optional) Configuration parameters.
 
24
 * @submodule series-area-stacked
 
25
 */
 
26
Y.StackedAreaSeries = Y.Base.create("stackedAreaSeries", Y.AreaSeries, [Y.StackingUtil], {
 
27
    /**
 
28
     * @protected
 
29
     *
 
30
     * Calculates the coordinates for the series. Overrides base implementation.
 
31
     *
 
32
     * @method setAreaData
 
33
     */
 
34
    setAreaData: function()
 
35
    {
 
36
        Y.StackedAreaSeries.superclass.setAreaData.apply(this);
 
37
        this._stackCoordinates.apply(this);
 
38
    },
 
39
 
 
40
    /**
 
41
     * @protected
 
42
     *
 
43
     * Draws the series
 
44
     *
 
45
     * @method drawSeries
 
46
     */
 
47
        drawSeries: function()
 
48
    {
 
49
        this.drawFill.apply(this, this._getStackedClosingPoints());
 
50
    }
 
51
}, {
 
52
    ATTRS: {
 
53
        /**
 
54
         * Read-only attribute indicating the type of series.
 
55
         *
 
56
         * @attribute type
 
57
         * @type String
 
58
         * @default stackedArea
 
59
         */
 
60
        type: {
 
61
            value:"stackedArea"
 
62
        }
 
63
    }
 
64
});
 
65
 
 
66
 
 
67
}, '3.13.0', {"requires": ["series-stacked", "series-area"]});