|
602
|
1 |
YUI.add('series-spline-stacked', function (Y, NAME) { |
|
|
2 |
|
|
|
3 |
/** |
|
|
4 |
* Provides functionality for creating a stacked spline series. |
|
|
5 |
* |
|
|
6 |
* @module charts |
|
|
7 |
* @submodule series-spline-stacked |
|
|
8 |
*/ |
|
|
9 |
/** |
|
|
10 |
* StackedSplineSeries creates spline graphs in which the different series are stacked along a value axis |
|
|
11 |
* to indicate their contribution to a cumulative total. |
|
|
12 |
* |
|
|
13 |
* @class StackedSplineSeries |
|
|
14 |
* @constructor |
|
|
15 |
* @extends SplineSeries |
|
|
16 |
* @uses StackingUtil |
|
|
17 |
* @param {Object} config (optional) Configuration parameters. |
|
|
18 |
* @submodule series-spline-stacked |
|
|
19 |
*/ |
|
|
20 |
Y.StackedSplineSeries = Y.Base.create("stackedSplineSeries", Y.SplineSeries, [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.StackedSplineSeries.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 stackedSpline |
|
|
41 |
*/ |
|
|
42 |
type: { |
|
|
43 |
value:"stackedSpline" |
|
|
44 |
} |
|
|
45 |
} |
|
|
46 |
}); |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
}, '@VERSION@', {"requires": ["series-stacked", "series-spline"]}); |