scichart
Version:
Fast WebGL JavaScript Charting Library and Framework
32 lines (31 loc) • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateValueNamesForDataSeries = exports.EValueName = void 0;
var EValueName;
(function (EValueName) {
EValueName["Y"] = "y";
EValueName["Y1"] = "y1";
EValueName["X1"] = "x1";
EValueName["Z"] = "z";
EValueName["BoxPlotMedian"] = "median";
EValueName["BoxPlotMax"] = "max";
EValueName["BoxPlotUpper"] = "upper";
EValueName["BoxPlotLower"] = "lower";
EValueName["BoxPlotMinimum"] = "minimum";
EValueName["Close"] = "close";
EValueName["High"] = "high";
EValueName["Low"] = "low";
EValueName["Open"] = "open";
})(EValueName = exports.EValueName || (exports.EValueName = {}));
/**
* Generates default values names for the data series
* @param n The number of y values
*/
function generateValueNamesForDataSeries(n) {
var strArray = [];
for (var i = 0; i < n; i++) {
strArray.push("y" + (i > 0 ? i.toString() : ""));
}
return strArray;
}
exports.generateValueNamesForDataSeries = generateValueNamesForDataSeries;