Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
81n90 opened this issue Jun 29, 2016 · 0 comments
Open

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

81n90 opened this issue Jun 29, 2016 · 0 comments

Comments

@81n90
Copy link

81n90 commented Jun 29, 2016

Failed to parse x '2016-06-29 04:10:01' to Date object
c3 error
[email protected]

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant