Skip to content

Failed to parse x '2016-06-29 04:10:01' to Date object #117

@81n90

Description

@81n90

Failed to parse x '2016-06-29 04:10:01' to Date object
c3 error
i.parseDate@c3.min.js

Have data like this
{
value: '10',
myTime: '2016-06-29 04:10:01'
},
{
value: '7',
myTime: '2016-06-29 04:11:01'
},
{
value: '14',
myTime: '2016-06-29 04:17:01'
}

and dimensions like this:

myTime {
axis: 'x',
dataType: 'datetime',
displayFormat: '%Y-%m-%d %H:%M:%S',
}
I need graph with axis x like this:
00:00 00:30 01:00 ... etc.
step every 30 minutes, but have random timed data.
in axis tick, I use
format: format: function (d) {
var item = $scope.options.data[d];
return d3.time.format('%H:%M')(new Date(item["myTime"]));
}
How to add x region? When try to add x region like '00:30' - it is not work without errors,
start/end with d3.time.format('%H:%M')(new Date("2016-06-29 04:11:01")) also not work.
on y axis simle integer data works properly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions