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

Visualisation of timestamp() incorrect #4

Open
crunchie84 opened this issue May 16, 2017 · 2 comments
Open

Visualisation of timestamp() incorrect #4

crunchie84 opened this issue May 16, 2017 · 2 comments

Comments

@crunchie84
Copy link

Using timestamp() overlays multiple events on top of each other. Removing the timestamp() operator makes them be spaced out over the graph again.

screen shot 2017-05-16 at 11 19 48

http://rxfiddle.net/#lib=rxjs5&type=editor&code=UnguT2JzZXJ2YWJsZQogIC5pbnRlcnZhbCgxMDApCiAgLnRpbWVzdGFtcCgpCiAgLnRpbWVvdXQoMjAwKQogIC50YWtlKDUpCiAgLnN1YnNjcmliZSgKICAgIHZhbCA9PiBjb25zb2xlLmxvZyh2YWwpLAoJZXJyID0+IGNvbnNvbGUubG9nKCdlcnI6ICcgKyBlcnIubWVzc2FnZSksCiAgICAoKSA9PiBjb25zb2xlLmxvZygnY29tcGxldGVkJykKICApOw==

@crunchie84
Copy link
Author

crunchie84 commented May 16, 2017

Visualisation when not using timestamp() operator:

screen shot 2017-05-16 at 11 21 10

@hermanbanken
Copy link
Owner

Thanks for filing the bug. The visualization currently does not handle time as a first class entity. I wanted to support simple cold Observables (Rx.Observable.of(1, 2, 3)) without time, so the order of events is captured, and every next call onto the top of the chain cause a new 'tick', the horizontal axis for now.

For some reason the timestamp operator causes the error to be scheduled inside the same tick. I will try to add timing into a next release. That would circumvent this issue.

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

2 participants