src/cm/media/js/lib/yui/yui_3.10.3/build/series-area-stacked/series-area-stacked-debug.js
equal
deleted
inserted
replaced
|
1 /* |
|
2 YUI 3.10.3 (build 2fb5187) |
|
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.10.3', {"requires": ["series-stacked", "series-area"]}); |