|
1 /* |
|
2 YUI 3.10.3 (build 2fb5187) |
|
3 Copyright 2013 Yahoo! Inc. All rights reserved. |
|
4 Licensed under the BSD License. |
|
5 http://yuilibrary.com/license/ |
|
6 */ |
|
7 |
|
8 YUI.add('series-areaspline', function (Y, NAME) { |
|
9 |
|
10 /** |
|
11 * Provides functionality for creating an areaspline series. |
|
12 * |
|
13 * @module charts |
|
14 * @submodule series-areaspline |
|
15 */ |
|
16 /** |
|
17 * AreaSplineSeries renders an area graph with data points connected by a curve. |
|
18 * |
|
19 * @class AreaSplineSeries |
|
20 * @extends AreaSeries |
|
21 * @uses CurveUtil |
|
22 * @constructor |
|
23 * @param {Object} config (optional) Configuration parameters. |
|
24 * @submodule series-areaspline |
|
25 */ |
|
26 Y.AreaSplineSeries = Y.Base.create("areaSplineSeries", Y.AreaSeries, [Y.CurveUtil], { |
|
27 /** |
|
28 * @protected |
|
29 * |
|
30 * Draws the series. |
|
31 * |
|
32 * @method drawSeries |
|
33 */ |
|
34 drawSeries: function() |
|
35 { |
|
36 this.drawAreaSpline(); |
|
37 } |
|
38 }, { |
|
39 ATTRS : { |
|
40 /** |
|
41 * Read-only attribute indicating the type of series. |
|
42 * |
|
43 * @attribute type |
|
44 * @type String |
|
45 * @default areaSpline |
|
46 */ |
|
47 type: { |
|
48 value:"areaSpline" |
|
49 } |
|
50 |
|
51 /** |
|
52 * Style properties used for drawing area fills. This attribute is inherited from `Renderer`. Below are the default values: |
|
53 * |
|
54 * <dl> |
|
55 * <dt>color</dt><dd>The color of the fill. The default value is determined by the order of the series on the graph. The color will be |
|
56 * retrieved from the following array: |
|
57 * `["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]` |
|
58 * </dd> |
|
59 * <dt>alpha</dt><dd>Number between 0 and 1 that indicates the opacity of the fill. The default value is 1</dd> |
|
60 * </dl> |
|
61 * |
|
62 * @attribute styles |
|
63 * @type Object |
|
64 */ |
|
65 } |
|
66 }); |
|
67 |
|
68 |
|
69 |
|
70 }, '3.10.3', {"requires": ["series-area", "series-curve-util"]}); |