/**
* An object used for automation verification of spark chart data items
* Applications should not create this object.
* @param {Object} data An object containing verification data
* @constructor
* @export
*/
oj.SparkChartDataItem = function(data) {
this._data = data;
};
/**
* Returns the border color of a spark chart data item
* @returns {String} The data item border color
* @export
*/
oj.SparkChartDataItem.prototype.getBorderColor = function() {
return this._data ? this._data['borderColor'] : null;
};
/**
* Returns the color of a spark chart data item
* @returns {String} The data item color
* @export
*/
oj.SparkChartDataItem.prototype.getColor = function() {
return this._data ? this._data['color'] : null;
};
/**
* Returns the date of a spark chart data item.
* @returns {Date} The data item date
* @export
*/
oj.SparkChartDataItem.prototype.getDate = function() {
return this._data ? this._data['date'] : null;
};
/**
* Returns the float value of a spark chart data item. Only applies to floatingBar sparkChart types.
* @returns {Number} The data item float value
* @export
*/
oj.SparkChartDataItem.prototype.getFloatValue = function() {
return this.getLow();
};
/**
* Returns the low value of a spark chart data item.
* @returns {Number} The data item low value
* @export
*/
oj.SparkChartDataItem.prototype.getLow = function() {
return this._data ? this._data['low'] : null;
};
/**
* Returns the high value of a spark chart data item.
* @returns {Number} The data item high value
* @export
*/
oj.SparkChartDataItem.prototype.getHigh = function() {
return this._data ? this._data['high'] : null;
};
/**
* Returns the value of a spark chart data item.
* @returns {Number} The data item value
* @export
*/
oj.SparkChartDataItem.prototype.getValue = function() {
return this._data ? this._data['value'] : null;
};
Source: src/main/javascript/oracle/oj/ojchart/SparkChartDataItem.js
Oracle® JavaScript Extension Toolkit (JET)
1.1.2
E65298-01