You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far I just reused the snippet from the Readme but it compiles and looks nice:
def plotElement(id: String): HtmlElement =
div(idAttr := id).amend(onMountCallback { ctx =>
val x = (0 to 100).map(_ * 0.1)
val y1 = x.map(d => 2.0 * d + util.Random.nextGaussian())
val y2 = x.map(math.exp)
val plot: Seq[Scatter] = Seq(
Scatter(x, y1).withName("Approx twice"),
Scatter(x, y2).withName("Exp")
)
val layout = Layout().withTitle("Curves")
plot.plot(id, layout) // attaches to div element with id
})
Or is there a way to use it? When I tried to cross-use it, I got:
Conflicting cross-version suffixes in: org.scala-js:scalajs-dom_sjs1
I also tried to recompile v0.84 as is before even trying to port it to Scala 3 but got:
The text was updated successfully, but these errors were encountered: