Skip to content

v0.7.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@alexarchambault alexarchambault released this 19 Apr 14:38
a9ea8c3

Automatic conversions from java.time._ classes

plotly-scala now accepts sequences of java.time.LocalDateTime, java.time.LocalDate, java.time.Instant as data.

Import plotly.element.LocalDateTime.UnsafeImplicitConversions._ to have it also accept java.time.OffsetDateTime and java.time.ZoneDateTime.

Added in #178, thanks to @tmccarthy.

Accept mutable Seqs as data in scala 2.13

Scala 2.13 changed the automatically imported Seq alias from scala.collection.Seq to scala.collection.immutable.Seq (former can be mutable, latter cannot). As a consequence, mutable sequences, like scala.collection.mutable.ArrayBuffer, were not accepted as data by plotly-scala.

#176 fixes that, thanks to @tmccarthy.