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

Javascript example histogram's data doesn't update #85

Closed
gsteckman opened this issue Oct 31, 2021 · 4 comments
Closed

Javascript example histogram's data doesn't update #85

gsteckman opened this issue Oct 31, 2021 · 4 comments
Labels
bug Something isn't working dataforge dataforge-specific issue fixed in dev Fixed in development version

Comments

@gsteckman
Copy link

In the js-demo, the histogram x.numbers are getting updated every 300 ms, with this code:

GlobalScope.launch { while (isActive) { x.numbers = List(500) { rnd.nextDouble() } delay(300) } }

However, in the browser window, the histogram does not get redrawn as expected.

On the trace demo, one of the trace's colors is randomly changing between magenta and blue every 500 ms, as expected.

This behavior was observed on both Firefox and Chrome, and with space.kscience:plotlykt-core-js:0.5.0.

@altavir
Copy link
Member

altavir commented Nov 1, 2021

Thanks for reporting, I think it was fixed in dev branch. I will check.

@altavir
Copy link
Member

altavir commented Nov 1, 2021

Reproduced. For some reason. DoubleArray works, but List of Doubles does not propagate an update.

@altavir
Copy link
Member

altavir commented Nov 2, 2021

I've finally found the problem. It was a convoluted number comparison problem that shows itself only in JS due to number specifics. It will be fixed with the new release of upstream.

@altavir
Copy link
Member

altavir commented Nov 2, 2021

Fixed in 0.5.1-dev-4

@SPC-code SPC-code mentioned this issue Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dataforge dataforge-specific issue fixed in dev Fixed in development version
Projects
None yet
Development

No branches or pull requests

2 participants