Lines Matching +refs:val +refs:obj
108 * @param {Array} val Array of lengths
112 _getRadiusCollection: function(val)
115 len = val.length,
119 radii[i] = val[i] * 0.5;
153 setter: function(val)
155 this._dimensions = val;
156 return val;
164 setter: function(val)
166 this._xvalues = val;
174 setter: function(val)
176 this._yvalues = val;
352 setter: function(val)
354 this._styles = this._setStyles(val);
2867 _getLabelBounds: function(val)
2876 this.get("appendLabelFunction")(label, this.get("labelFunction").apply(this, [val, this.get("labelFormat")]));
2955 * @param val {String} value with which to update the label
2958 _setText: function(textField, val)
2961 if(Y_Lang.isNumber(val))
2963 val = val + "";
2965 else if(!val)
2967 val = "";
2969 if(IS_STRING(val))
2971 val = DOCUMENT.createTextNode(val);
2973 textField.appendChild(val);
2999 setter: function(val)
3001 this._explicitWidth = val;
3002 return val;
3027 setter: function(val)
3029 this._explicitHeight = val;
3030 return val;
3047 setter: function(val)
3049 this._calculatedWidth = val;
3050 return val;
3067 setter: function(val)
3069 this._calculatedHeight = val;
3070 return val;
3155 setter: function(val)
3157 var layoutClass = this._layoutClasses[val];
3158 if(val && val != "none")
3162 return val;
3253 validator: function(val)
3255 return Y_Lang.isBoolean(val);
3280 setter: function(val)
3282 this._maxLabelSize = val;
3283 return val;
3307 * <dt>val</dt><dd>Label to be formatted. (`String`)</dd>
3315 value: function(val, format)
3317 return val;
3325 * <dt>val</dt><dd>The value to attach to the text field. This method will accept an `HTMLELement`
3346 * <dt>val</dt><dd>The value to attach to the text field. This method will accept an `HTMLELement`
3581 obj,
3586 obj = data[i];
3587 keyArray[i] = obj[key];
3603 obj,
3609 obj = dv[i];
3610 arr[i] = obj[key];
3870 setter: function(val)
3876 if(Y_Lang.isArray(val))
3878 len = val.length;
3881 keys[val[i]] = this._getKeyArray(val[i], data);
3885 else if(Y_Lang.isString(val))
3888 keys[val] = this._getKeyArray(val, data);
3892 for(i in val)
3894 if(val.hasOwnProperty(i))
4044 setter: function(val)
4046 this._setMinimum = parseFloat(val);
4047 return val;
4158 * <dt>val</dt><dd>Label to be formatted. (`String`)</dd>
4166 value: function(val, format)
4170 return Y.DataType.Number.format(val, format);
4172 return val;
4204 formatLabel: function(val, format)
4208 return Y.DataType.Number.format(val, format);
4210 return val;
4225 val,
4229 val = parseFloat(values[i]);
4230 if(!isNaN(val))
4232 total += val;
5014 * <dt>val</dt><dd>Label to be formatted. (`String`)</dd>
5022 value: function(val, format)
5024 val = Y.DataType.Date.parse(val);
5027 return Y.DataType.Date.format(val, {format:format});
5029 return val;
5053 formatLabel: function(val, format)
5055 val = Y.DataType.Date.parse(val);
5058 return Y.DataType.Date.format(val, {format:format});
5060 return val;
5121 var obj,
5124 val,
5128 obj = data[i][key];
5129 if(Y_Lang.isDate(obj))
5131 val = obj.valueOf();
5135 val = new Date(obj);
5136 if(Y_Lang.isDate(val))
5138 val = val.valueOf();
5140 else if(!Y_Lang.isNumber(obj))
5142 if(Y_Lang.isNumber(parseFloat(obj)))
5144 val = parseFloat(obj);
5148 if(typeof obj != "string")
5150 obj = obj;
5152 val = new Date(obj).valueOf();
5157 val = obj;
5160 keyArray[i] = val;
5175 var obj,
5179 val,
5183 obj = dv[i][key];
5184 if(Y_Lang.isDate(obj))
5186 val = obj.valueOf();
5190 val = new Date(obj);
5191 if(Y_Lang.isDate(val))
5193 val = val.valueOf();
5195 else if(!Y_Lang.isNumber(obj))
5197 if(Y_Lang.isNumber(parseFloat(obj)))
5199 val = parseFloat(obj);
5203 if(typeof obj != "string")
5205 obj = obj.toString();
5207 val = new Date(obj).valueOf();
5212 val = obj;
5215 arr[i] = val;
5225 * @param val {Object} Value to parse into a number
5229 _getNumber: function(val)
5231 if(Y_Lang.isDate(val))
5233 val = val.valueOf();
5235 else if(!Y_Lang.isNumber(val) && val)
5237 val = new Date(val).valueOf();
5240 return val;
5272 formatLabel: function(val, format)
5274 return val;
5327 obj,
5337 obj = data[i];
5339 labels[i] = obj[key];
5356 obj,
5367 obj = dv[i];
5369 labels[i] = obj[key];
5984 setter: function(val)
5987 this._defaults = Y.merge(defaults, val);
6751 * @param {Array} val collection of colors
6756 _getItemColor: function(val, i)
6758 if(Y_Lang.isArray(val))
6760 return val[i % val.length];
6762 return val;
6773 _setStyles: function(val)
6775 val = this._parseMarkerStyles(val);
6776 return Y.Renderer.prototype._setStyles.apply(this, [val]);
6787 _parseMarkerStyles: function(val)
6789 if(val.marker)
6792 val.marker = this._mergeStyles(val.marker, defs);
6793 if(val.marker.over)
6795 val.marker.over = this._mergeStyles(val.marker.over, val.marker);
6797 if(val.marker.down)
6799 val.marker.down = this._mergeStyles(val.marker.down, val.marker);
6802 return val;
7575 setter: function(val)
7577 this._xDisplayName = val.toString();
7578 return val;
7594 setter: function(val)
7596 this._yDisplayName = val.toString();
7597 return val;
7726 setter: function(val)
7728 return val.toString();
7740 setter: function(val)
7742 return val.toString();
7894 setter: function(val)
7896 this._groupMarkers = val;
7897 return val;
7934 _setStyles: function(val)
7936 if(!val.marker)
7938 val = {marker:val};
7940 val = this._parseMarkerStyles(val);
7941 return Y.MarkerSeries.superclass._mergeStyles.apply(this, [val, this._getDefaultStyles()]);
8034 _setStyles: function(val)
8036 if(!val.line)
8038 val = {line:val};
8040 return Y.LineSeries.superclass._setStyles.apply(this, [val]);
8629 _setStyles: function(val)
8631 if(!val.area)
8633 val = {area:val};
8635 return Y.AreaSeries.superclass._setStyles.apply(this, [val]);
8905 setter: function(val)
8907 this.set("styles", {marker:val});
8938 setter: function(val)
8940 this.set("styles", {line:val});
8965 setter: function(val)
8967 this.set("styles", {area:val});
10612 setter: function(val)
10614 this._categoryDisplayName = val;
10615 return val;
10631 setter: function(val)
10633 this._valueDisplayName = val;
10634 return val;
10953 * @param {Number} val index of the series
10956 getSeriesByIndex: function(val)
10960 if(col && col.length > val)
10962 series = col[val];
10971 * @param {String} val key value of the series
10974 getSeriesByKey: function(val)
10976 var obj = this._seriesDictionary,
10978 if(obj && obj.hasOwnProperty(val))
10980 series = obj[val];
10990 * @param {CartesianSeries} val series instance to add
10993 addDispatcher: function(val)
10999 this._dispatchers.push(val);
11027 _parseSeriesCollection: function(val)
11029 if(!val)
11033 var len = val.length,
11051 series = val[i];
11421 setter: function(val)
11423 this.get("boundingBox").setStyle("left", val + "px");
11424 return val;
11436 setter: function(val)
11438 this.get("boundingBox").setStyle("top", val + "px");
11439 return val;
11465 setter: function(val)
11467 this._parseSeriesCollection(val);
11509 setter: function(val)
11516 if(val instanceof Y.Gridlines)
11518 gl = val;
11519 val.set("graph", this);
11520 return val;
11522 else if(val && val.axis)
11524 gl = new Y.Gridlines({direction:"horizontal", axis:val.axis, graph:this, styles:val.styles});
11540 setter: function(val)
11547 if(val instanceof Y.Gridlines)
11549 gl = val;
11550 val.set("graph", this);
11551 return val;
11553 else if(val && val.axis)
11555 gl = new Y.Gridlines({direction:"vertical", axis:val.axis, graph:this, styles:val.styles});
11681 setter: function(val)
11686 cb.setAttribute("aria-label", val);
11688 return val;
11701 setter: function(val)
11706 this._description.appendChild(DOCUMENT.createTextNode(val));
11708 return val;
11773 * <dt>val</dt><dd>The content to be rendered into tooltip. This can be a `String` or `HTMLElement`. If an HTML string is used, it will be rendered as a
11784 setter: function(val)
11786 return this._updateTooltip(val);
11841 setter: function(val)
11843 return this._setDataValues(val);
11884 setter: function(val)
11888 this.get("graph").set("groupMarkers", val);
11890 return val;
11935 * @param val
11938 getSeries: function(val)
11944 if(Y_Lang.isNumber(val))
11946 series = graph.getSeriesByIndex(val);
11950 series = graph.getSeriesByKey(val);
11963 * @param {String} val Key reference used to look up the axis.
11966 getAxisByKey: function(val)
11970 if(axes && axes.hasOwnProperty(val))
11972 axis = axes[val];
12018 * @param {Array} val Array to be set as `dataProvider`.
12022 _setDataValues: function(val)
12024 if(Y_Lang.isArray(val[0]))
12028 cats = val[0],
12032 sl = val.length;
12038 hash["series" + n] = val[n][i];
12044 return val;
12060 * @param {Array} val Array of either `CartesianSeries` instances or objects containing series attribute key value pairs.
12063 _setSeriesCollection: function(val)
12065 this._seriesCollection = val;
12588 * @param {Object} val Object containing properties for the tooltip.
12592 _updateTooltip: function(val)
12608 if(Y_Lang.isObject(val))
12610 styles = val.styles;
12611 node = Y.one(val.node) || tt.node;
12624 if(val.hasOwnProperty(i))
12626 tt[i] = val[i];
12823 * @param val {String} value with which to update the label
12826 _setText: function(textField, val)
12829 if(Y_Lang.isNumber(val))
12831 val = val + "";
12833 else if(!val)
12835 val = "";
12837 if(IS_STRING(val))
12839 val = DOCUMENT.createTextNode(val);
12841 textField.appendChild(val);
13099 * @param {Array} val Array containing either `CartesianSeries` instances or objects containing data to construct series instances.
13112 * @param {Object} val Object contain properties for series being set.
13116 _parseSeriesCollection: function(val)
13119 sc = val || [],
13203 if(val)
13351 * @param {Object} val Object containing `Axis` instances or objects in which to construct `Axis` instances.
13355 _setAxes: function(val)
13357 var hash = this._parseAxes(val),
13419 if(val)
14542 setter: function(val)
14546 for(i in val)
14548 if(val.hasOwnProperty(i) && axes.hasOwnProperty(i))
14550 this._setBaseAttribute(axes[i], "styles", val[i]);
14588 setter: function(val)
14594 if(Y_Lang.isArray(val))
14598 l = val.length;
14602 this._setBaseAttribute(s[i], "styles", val[i]);
14607 for(i in val)
14609 if(val.hasOwnProperty(i))
14612 this._setBaseAttribute(s, "styles", val[i]);
14637 setter: function(val)
14640 this._setBaseAttribute(graph, "styles", val);
14679 setter: function(val)
14681 if(val.hasOwnProperty("axes"))
14685 this.set("axesStyles", val.axes);
14689 this._axesStyles = val.axes;
14692 if(val.hasOwnProperty("series"))
14696 this.set("seriesStyles", val.series);
14700 this._seriesStyles = val.series;
14703 if(val.hasOwnProperty("graph"))
14705 this.set("graphStyles", val.graph);
14720 setter: function(val)
14722 return this._setAxes(val);
14736 setter: function(val)
14738 return this._parseSeriesCollection(val);
14811 setter: function(val)
14813 this._direction = val;
14878 setter: function(val)
14881 if(val && !Y_Lang.isObject(val))
14883 val = {};
14887 graph.set("horizontalGridlines", val);
14891 this._horizontalGridlines = val;
14912 setter: function(val)
14915 if(val && !Y_Lang.isObject(val))
14917 val = {};
14921 graph.set("verticalGridlines", val);
14925 this._verticalGridlines = val;
14946 setter: function(val)
14950 if(val != "bar")
14957 if(val == "bar")
14962 this._type = val;
15031 * @param {Object} val Object containing `Axis` instances or objects in which to construct `Axis` instances.
15382 setter: function(val)
15387 this._description.appendChild(DOCUMENT.createTextNode(val));
15389 return val;
15405 setter: function(val)
15407 this._parseAxes(val);
15424 setter: function(val)
15426 return this._setSeriesCollection(val);