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

DateTime dimension support #20

Closed
dataliven opened this Issue Apr 23, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@dataliven

dataliven commented Apr 23, 2013

Hi, just add DateTime dimension support , but not knowing how to send them. So I put them here:
In lastest version, add following code to pc.autoscale -> defaultScales
"date":function(k) {
return d3.time.scale()
.domain(d3.extent(__.data, function(d) {
if(d[k])return d[k].getTime();
else return 0;
}))
.range([h()+1, 1])
}
And add these to selected() -> within
"date": function(d,p,dimension) {
return extents[dimension][0] <= d[p] && d[p] <= extents[dimension][1]
}
I have tested these codes in veterans.html example.

@syntagmatic

This comment has been minimized.

Show comment
Hide comment
@syntagmatic

syntagmatic Aug 21, 2013

Owner

Thanks so much. It works perfectly. Sorry it took so long for me to add this change.

Owner

syntagmatic commented Aug 21, 2013

Thanks so much. It works perfectly. Sorry it took so long for me to add this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment