RxFiddle icon indicating copy to clipboard operation
RxFiddle copied to clipboard

Visualisation of timestamp() incorrect

Open crunchie84 opened this issue 7 years ago • 2 comments

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 avatar May 16 '17 09:05 crunchie84

Visualisation when not using timestamp() operator:

screen shot 2017-05-16 at 11 21 10

crunchie84 avatar May 16 '17 09:05 crunchie84

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.

hermanbanken avatar May 17 '17 17:05 hermanbanken