src/cm/media/js/lib/yui/yui3-3.15.0/build/series-combospline/series-combospline.js
equal
deleted
inserted
replaced
|
1 YUI.add('series-combospline', function (Y, NAME) { |
|
2 |
|
3 /** |
|
4 * Provides functionality for creating a combospline series. |
|
5 * |
|
6 * @module charts |
|
7 * @submodule series-combospline |
|
8 */ |
|
9 /** |
|
10 * The ComboSplineSeries class renders a combination of splines, plots and areaspline fills in a single series. Each |
|
11 * series type has a corresponding boolean attribute indicating if it is rendered. By default, splines and plots |
|
12 * are rendered and areaspline is not. |
|
13 * |
|
14 * @class ComboSplineSeries |
|
15 * @extends ComboSeries |
|
16 * @uses CurveUtil |
|
17 * @constructor |
|
18 * @param {Object} config (optional) Configuration parameters. |
|
19 * @submodule series-combospline |
|
20 */ |
|
21 Y.ComboSplineSeries = Y.Base.create("comboSplineSeries", Y.ComboSeries, [Y.CurveUtil], { |
|
22 /** |
|
23 * @protected |
|
24 * |
|
25 * Draws the series. |
|
26 * |
|
27 * @method drawSeries |
|
28 */ |
|
29 drawSeries: function() |
|
30 { |
|
31 if(this.get("showAreaFill")) |
|
32 { |
|
33 this.drawAreaSpline(); |
|
34 } |
|
35 if(this.get("showLines")) |
|
36 { |
|
37 this.drawSpline(); |
|
38 } |
|
39 if(this.get("showMarkers")) |
|
40 { |
|
41 this.drawPlots(); |
|
42 } |
|
43 } |
|
44 }, { |
|
45 ATTRS: { |
|
46 /** |
|
47 * Read-only attribute indicating the type of series. |
|
48 * |
|
49 * @attribute type |
|
50 * @type String |
|
51 * @default comboSpline |
|
52 */ |
|
53 type: { |
|
54 value : "comboSpline" |
|
55 } |
|
56 } |
|
57 }); |
|
58 |
|
59 |
|
60 }, '@VERSION@', {"requires": ["series-combo", "series-curve-util"]}); |