Skip to content

Commit

Permalink
Use id generation from almond
Browse files Browse the repository at this point in the history
That can be deterministic if needed
  • Loading branch information
alexarchambault committed Dec 17, 2018
1 parent 21b40ab commit ae03031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion almond/src/main/scala/plotly/Almond.scala
Expand Up @@ -95,7 +95,8 @@ object Almond {
div0
}

def randomDiv() = "plot-" + math.abs(Random.nextInt().toLong)
def randomDiv(): String =
almond.api.helpers.Display.newDiv("plot-")

def plot(
data: Seq[Trace],
Expand Down

0 comments on commit ae03031

Please sign in to comment.