[ 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-marker', function (Y, NAME) { 9 10 /** 11 * Provides functionality for creating a marker series. 12 * 13 * @module charts 14 * @submodule series-marker 15 */ 16 /** 17 * The MarkerSeries class renders quantitative data by plotting relevant data points 18 * on a graph. 19 * 20 * @class MarkerSeries 21 * @extends CartesianSeries 22 * @uses Plots 23 * @constructor 24 * @param {Object} config (optional) Configuration parameters. 25 * @submodule series-marker 26 */ 27 Y.MarkerSeries = Y.Base.create("markerSeries", Y.CartesianSeries, [Y.Plots], { 28 /** 29 * @protected 30 * 31 * Method used by `styles` setter. Overrides base implementation. 32 * 33 * @method _setStyles 34 * @param {Object} newStyles Hash of properties to update. 35 * @return Object 36 */ 37 _setStyles: function(val) 38 { 39 if(!val.marker) 40 { 41 val = {marker:val}; 42 } 43 val = this._parseMarkerStyles(val); 44 return Y.MarkerSeries.superclass._mergeStyles.apply(this, [val, this._getDefaultStyles()]); 45 } 46 },{ 47 ATTRS : { 48 /** 49 * Read-only attribute indicating the type of series. 50 * 51 * @attribute type 52 * @type String 53 * @default marker 54 */ 55 type: { 56 value:"marker" 57 } 58 59 /** 60 * Style properties used for drawing markers. This attribute is inherited from `Renderer`. Below are the default 61 * values: 62 * <dl> 63 * <dt>fill</dt><dd>A hash containing the following values: 64 * <dl> 65 * <dt>color</dt><dd>Color of the fill. The default value is determined by the order of the series on 66 * the graph. The color will be retrieved from the below array:<br/> 67 * `["#6084d0", "#eeb647", "#6c6b5f", "#d6484f", "#ce9ed1", "#ff9f3b", "#93b7ff", "#e0ddd0", "#94ecba", "#309687"]` 68 * </dd> 69 * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd> 70 * </dl> 71 * </dd> 72 * <dt>border</dt><dd>A hash containing the following values: 73 * <dl> 74 * <dt>color</dt><dd>Color of the border. The default value is determined by the order of the series on 75 * the graph. The color will be retrieved from the below array:<br/> 76 * `["#205096", "#b38206", "#000000", "#94001e", "#9d6fa0", "#e55b00", "#5e85c9", "#adab9e", "#6ac291", "#006457"]` 77 * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> 78 * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 1.</dd> 79 * </dl> 80 * </dd> 81 * <dt>width</dt><dd>indicates the width of the marker. The default value is 10.</dd> 82 * <dt>height</dt><dd>indicates the height of the marker The default value is 10.</dd> 83 * <dt>over</dt><dd>hash containing styles for markers when highlighted by a `mouseover` event. The default 84 * values for each style is null. When an over style is not set, the non-over value will be used. For example, 85 * the default value for `marker.over.fill.color` is equivalent to `marker.fill.color`.</dd> 86 * </dl> 87 * 88 * @attribute styles 89 * @type Object 90 */ 91 } 92 }); 93 94 95 96 }, '3.17.2', {"requires": ["series-cartesian", "series-plot-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 |