Browse Source

Accept milliseconds as timeseries x - #89

pull/104/head
Masayuki Tanaka 11 years ago
parent
commit
364b34b6cf
  1. 2
      c3.js
  2. 2
      c3.min.js

2
c3.js

@ -1537,7 +1537,7 @@
function parseDate(date) {
var parsedDate;
if (!date) { throw Error(date + " can not be parsed as d3.time with format " + __data_x_format + ". Maybe 'x' of this data is not defined. See data.x or data.xs option."); }
parsedDate = d3.time.format(__data_x_format).parse(date);
parsedDate = __data_x_format ? d3.time.format(__data_x_format).parse(date) : new Date(date);
if (!parsedDate) { throw Error("Failed to parse '" + date + "' with format " + __data_x_format); }
return parsedDate;
}

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save