mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
57 lines
1.4 KiB
JavaScript
57 lines
1.4 KiB
JavaScript
/*
|
|
YUI 3.15.0 (build 834026e)
|
|
Copyright 2014 Yahoo! Inc. All rights reserved.
|
|
Licensed under the BSD License.
|
|
http://yuilibrary.com/license/
|
|
*/
|
|
|
|
YUI.add('series-marker-stacked', function (Y, NAME) {
|
|
|
|
/**
|
|
* Provides functionality for creating a stacked marker series.
|
|
*
|
|
* @module charts
|
|
* @submodule series-marker-stacked
|
|
*/
|
|
/**
|
|
* StackedMarkerSeries plots markers with different series stacked along the value axis to indicate each
|
|
* series' contribution to a cumulative total.
|
|
*
|
|
* @class StackedMarkerSeries
|
|
* @constructor
|
|
* @extends MarkerSeries
|
|
* @uses StackingUtil
|
|
* @param {Object} config (optional) Configuration parameters.
|
|
* @submodule series-marker-stacked
|
|
*/
|
|
Y.StackedMarkerSeries = Y.Base.create("stackedMarkerSeries", Y.MarkerSeries, [Y.StackingUtil], {
|
|
/**
|
|
* @protected
|
|
*
|
|
* Calculates the coordinates for the series. Overrides base implementation.
|
|
*
|
|
* @method setAreaData
|
|
*/
|
|
setAreaData: function()
|
|
{
|
|
Y.StackedMarkerSeries.superclass.setAreaData.apply(this);
|
|
this._stackCoordinates.apply(this);
|
|
}
|
|
}, {
|
|
ATTRS: {
|
|
/**
|
|
* Read-only attribute indicating the type of series.
|
|
*
|
|
* @attribute type
|
|
* @type String
|
|
* @default stackedMarker
|
|
*/
|
|
type: {
|
|
value:"stackedMarker"
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}, '3.15.0', {"requires": ["series-stacked", "series-marker"]});
|