You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
2 years ago
|
/*
|
||
|
YUI 3.17.2 (build 9c3c78e)
|
||
|
Copyright 2014 Yahoo! Inc. All rights reserved.
|
||
|
Licensed under the BSD License.
|
||
|
http://yuilibrary.com/license/
|
||
|
*/
|
||
|
|
||
|
YUI.add('series-areaspline-stacked', function (Y, NAME) {
|
||
|
|
||
|
/**
|
||
|
* Provides functionality for creating a stacked area spline series.
|
||
|
*
|
||
|
* @module charts
|
||
|
* @submodule series-areaspline-stacked
|
||
|
*/
|
||
|
/**
|
||
|
* StackedAreaSplineSeries creates a stacked area chart with points data points connected by a curve.
|
||
|
*
|
||
|
* @class StackedAreaSplineSeries
|
||
|
* @extends AreaSeries
|
||
|
* @uses CurveUtil
|
||
|
* @uses StackingUtil
|
||
|
* @constructor
|
||
|
* @param {Object} config (optional) Configuration parameters.
|
||
|
* @submodule series-areaspline-stacked
|
||
|
*/
|
||
|
Y.StackedAreaSplineSeries = Y.Base.create("stackedAreaSplineSeries", Y.AreaSeries, [Y.CurveUtil, Y.StackingUtil], {
|
||
|
/**
|
||
|
* @protected
|
||
|
*
|
||
|
* Draws the series.
|
||
|
*
|
||
|
* @method drawSeries
|
||
|
*/
|
||
|
drawSeries: function()
|
||
|
{
|
||
|
this._stackCoordinates();
|
||
|
this.drawStackedAreaSpline();
|
||
|
}
|
||
|
}, {
|
||
|
ATTRS : {
|
||
|
/**
|
||
|
* Read-only attribute indicating the type of series.
|
||
|
*
|
||
|
* @attribute type
|
||
|
* @type String
|
||
|
* @default stackedAreaSpline
|
||
|
*/
|
||
|
type: {
|
||
|
value:"stackedAreaSpline"
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
|
||
|
}, '3.17.2', {"requires": ["series-stacked", "series-areaspline"]});
|