-
Notifications
You must be signed in to change notification settings - Fork 21
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
Histogram not working properly, according to example #70
Comments
Thanks, I've reproduced it on JS (works perfectly fine on the JVM). For some reason, it ignores the trace type parameter when used directly from JS. The Random is not the issue. |
For some reason I couldn't get the |
Fixed and will be available in 0.4.0 |
No, we need to migrate to a new version because there are some breaking changes and the package version change (kscience->space.kscience). I've published the reposirories{
maven("https://repo.kotlin.link")
}
depdendencies{
implementation("space.kscience:plotlykt-core:0.4.0-dev-2")
} There are breaking changes in package names, so be sure to check examples in dev branch. |
I believe there is an issue with the histogram examples (or perhaps with histograms itself). I have created a simple js histogram rendering using https://github.com/mipt-npm/plotly.kt/blob/master/examples/src/main/kotlin/histogram/BasicHistogram.kt as a reference. The code is the following: (version
0.3.1
)I believe this should produce a good looking histogram however what is produced is the following:
Also there is another issue in the examples, the usage of
Random
, which according to the documentation (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.random/-random/) should be called likeRandom.nextDouble()
instead ofRandom().nextDouble()
as it is written in the examples.The text was updated successfully, but these errors were encountered: