src/cm/media/js/lib/yui/yui3-3.15.0/build/series-area-stacked/series-area-stacked.js
equal
deleted
inserted
replaced
|
1 YUI.add('series-area-stacked', function (Y, NAME) { |
|
2 |
|
3 /** |
|
4 * Provides functionality for creating a stacked area series. |
|
5 * |
|
6 * @module charts |
|
7 * @submodule series-area-stacked |
|
8 */ |
|
9 /** |
|
10 * StackedAreaSeries area fills to display data showing its contribution to a whole. |
|
11 * |
|
12 * @class StackedAreaSeries |
|
13 * @extends AreaSeries |
|
14 * @uses StackingUtil |
|
15 * @constructor |
|
16 * @param {Object} config (optional) Configuration parameters. |
|
17 * @submodule series-area-stacked |
|
18 */ |
|
19 Y.StackedAreaSeries = Y.Base.create("stackedAreaSeries", Y.AreaSeries, [Y.StackingUtil], { |
|
20 /** |
|
21 * @protected |
|
22 * |
|
23 * Calculates the coordinates for the series. Overrides base implementation. |
|
24 * |
|
25 * @method setAreaData |
|
26 */ |
|
27 setAreaData: function() |
|
28 { |
|
29 Y.StackedAreaSeries.superclass.setAreaData.apply(this); |
|
30 this._stackCoordinates.apply(this); |
|
31 }, |
|
32 |
|
33 /** |
|
34 * @protected |
|
35 * |
|
36 * Draws the series |
|
37 * |
|
38 * @method drawSeries |
|
39 */ |
|
40 drawSeries: function() |
|
41 { |
|
42 this.drawFill.apply(this, this._getStackedClosingPoints()); |
|
43 } |
|
44 }, { |
|
45 ATTRS: { |
|
46 /** |
|
47 * Read-only attribute indicating the type of series. |
|
48 * |
|
49 * @attribute type |
|
50 * @type String |
|
51 * @default stackedArea |
|
52 */ |
|
53 type: { |
|
54 value:"stackedArea" |
|
55 } |
|
56 } |
|
57 }); |
|
58 |
|
59 |
|
60 }, '@VERSION@', {"requires": ["series-stacked", "series-area"]}); |