Commit d1783abe authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix bug for raw timeseries input - #311

parent 32b6f93c
......@@ -1464,7 +1464,17 @@
function generateTargetX(rawX, id, index) {
var x;
if (isTimeSeries) {
x = rawX ? rawX instanceof Date ? rawX : parseDate(rawX) : parseDate(getXValue(id, index));
if (rawX) {
if (typeof rawX === 'number') {
x = new Date(rawX);
} else if (rawX instanceof Date) {
x = rawX;
} else {
x = parseDate(rawX);
}
} else {
x = parseDate(getXValue(id, index));
}
}
else if (isCustomX() && !isCategorized) {
x = isValue(rawX) ? +rawX : getXValue(id, index);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment