|
602
|
1 |
YUI.add('series-line-stacked', function (Y, NAME) { |
|
|
2 |
|
|
|
3 |
/** |
|
|
4 |
* Provides functionality for creatiing a stacked line series. |
|
|
5 |
* |
|
|
6 |
* @module charts |
|
|
7 |
* @submodule series-line-stacked |
|
|
8 |
*/ |
|
|
9 |
/** |
|
|
10 |
* StackedLineSeries creates line graphs in which the different series are stacked along a value axis |
|
|
11 |
* to indicate their contribution to a cumulative total. |
|
|
12 |
* |
|
|
13 |
* @class StackedLineSeries |
|
|
14 |
* @constructor |
|
|
15 |
* @extends LineSeries |
|
|
16 |
* @uses StackingUtil |
|
|
17 |
* @param {Object} config (optional) Configuration parameters. |
|
|
18 |
* @submodule series-line-stacked |
|
|
19 |
*/ |
|
|
20 |
Y.StackedLineSeries = Y.Base.create("stackedLineSeries", Y.LineSeries, [Y.StackingUtil], { |
|
|
21 |
/** |
|
|
22 |
* @protected |
|
|
23 |
* |
|
|
24 |
* Calculates the coordinates for the series. Overrides base implementation. |
|
|
25 |
* |
|
|
26 |
* @method setAreaData |
|
|
27 |
*/ |
|
|
28 |
setAreaData: function() |
|
|
29 |
{ |
|
|
30 |
Y.StackedLineSeries.superclass.setAreaData.apply(this); |
|
|
31 |
this._stackCoordinates.apply(this); |
|
|
32 |
} |
|
|
33 |
}, { |
|
|
34 |
ATTRS: { |
|
|
35 |
/** |
|
|
36 |
* Read-only attribute indicating the type of series. |
|
|
37 |
* |
|
|
38 |
* @attribute type |
|
|
39 |
* @type String |
|
|
40 |
* @default stackedLine |
|
|
41 |
*/ |
|
|
42 |
type: { |
|
|
43 |
value:"stackedLine" |
|
|
44 |
} |
|
|
45 |
} |
|
|
46 |
}); |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
}, '@VERSION@', {"requires": ["series-stacked", "series-line"]}); |