[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 /* 2 YUI 3.17.2 (build 9c3c78e) 3 Copyright 2014 Yahoo! Inc. All rights reserved. 4 Licensed under the BSD License. 5 http://yuilibrary.com/license/ 6 */ 7 8 YUI.add('series-spline', function (Y, NAME) { 9 10 /** 11 * Provides functionality for creating a spline series. 12 * 13 * @module charts 14 * @submodule series-spline 15 */ 16 /** 17 * SplineSeries renders a graph with data points connected by a curve. 18 * 19 * @class SplineSeries 20 * @extends LineSeries 21 * @uses CurveUtil 22 * @uses Lines 23 * @constructor 24 * @param {Object} config (optional) Configuration parameters. 25 * @submodule series-spline 26 */ 27 Y.SplineSeries = Y.Base.create("splineSeries", Y.LineSeries, [Y.CurveUtil, Y.Lines], { 28 /** 29 * @protected 30 * 31 * Draws the series. 32 * 33 * @method drawSeries 34 */ 35 drawSeries: function() 36 { 37 this.drawSpline(); 38 } 39 }, { 40 ATTRS : { 41 /** 42 * Read-only attribute indicating the type of series. 43 * 44 * @attribute type 45 * @type String 46 * @default spline 47 */ 48 type : { 49 value:"spline" 50 } 51 52 /** 53 * Style properties used for drawing lines. This attribute is inherited from `Renderer`. 54 * Below are the default values: 55 * <dl> 56 * <dt>color</dt><dd>The color of the line. The default value is determined by the order of the series on 57 * the graph. The color will be retrieved from the following array: 58 * `["#426ab3", "#d09b2c", "#000000", "#b82837", "#b384b5", "#ff7200", "#779de3", "#cbc8ba", "#7ed7a6", "#007a6c"]` 59 * <dt>weight</dt><dd>Number that indicates the width of the line. The default value is 6.</dd> 60 * <dt>alpha</dt><dd>Number between 0 and 1 that indicates the opacity of the line. The default value is 1.</dd> 61 * <dt>lineType</dt><dd>Indicates whether the line is solid or dashed. The default value is solid.</dd> 62 * <dt>dashLength</dt><dd>When the `lineType` is dashed, indicates the length of the dash. The default value 63 * is 10.</dd> 64 * <dt>gapSpace</dt><dd>When the `lineType` is dashed, indicates the distance between dashes. The default value is 65 * 10.</dd> 66 * <dt>connectDiscontinuousPoints</dt><dd>Indicates whether or not to connect lines when there is a missing or null 67 * value between points. The default value is true.</dd> 68 * <dt>discontinuousType</dt><dd>Indicates whether the line between discontinuous points is solid or dashed. The 69 * default value is solid.</dd> 70 * <dt>discontinuousDashLength</dt><dd>When the `discontinuousType` is dashed, indicates the length of the dash. 71 * The default value is 10.</dd> 72 * <dt>discontinuousGapSpace</dt><dd>When the `discontinuousType` is dashed, indicates the distance between dashes. 73 * The default value is 10.</dd> 74 * </dl> 75 * 76 * @attribute styles 77 * @type Object 78 */ 79 } 80 }); 81 82 83 84 85 86 87 88 89 }, '3.17.2', {"requires": ["series-line", "series-curve-util"]});
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |