Skip to content

Date axis not working in 3D scatter with duplicate timestamp values #2190

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

Closed
bcdunbar opened this issue Nov 30, 2017 · 2 comments
Closed

Date axis not working in 3D scatter with duplicate timestamp values #2190

bcdunbar opened this issue Nov 30, 2017 · 2 comments
Labels
bug something broken

Comments

@bcdunbar
Copy link

Date axis doesn't work in 3D scatter chart type when Hour and Month (and date) values area repeated such as,

2001-01-01 12:01:30
2001-01-01 12:01:40

The above dates work as expected in regular scatter plot.

Originally reported here https://codepen.io/brian428/pen/aVQeqv?editors=0010

Confirmed here https://codepen.io/bcd/pen/eebmRa?editors=1010

@etpinard
Copy link
Contributor

Probably another manifestation of #551

@etpinard etpinard added the bug something broken label Nov 30, 2017
@alexcjohnson
Copy link
Collaborator

Probably another manifestation of #551

Yep, this is below the resolution of Float32:

d1=Date.UTC(2016,11,31,16,30,10)
> 1483201810000
d2=Date.UTC(2016,11,31,16,30,20)
> 1483201820000
d2 - d1
> 10000
a=new Float32Array([d1,d2])
> Float32Array(2) [1483201839104, 1483201839104]
a[1] - a[0]
> 0

Looks like at the present distance from the unix epoch, 32-bit resolution is ~2 minutes (2^17 = 131072 msec). In 2001 we were closer to the epoch so the exponent floats down 1 and we get, ~1 minute resolution (2^16 = 65536 msec).

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

No branches or pull requests

3 participants