alexarchambault/plotly-scala

Probably add an Element.fromDateTime

Opened this issue · 0 comments

It probably could have been implemented like this

object Element {
  ...

  implicit def fromDateTime(t: LocalDateTime): Element =
    StringElement(t.toString)
}

Currenly I have to use it if I want to add an Annotation to X axis which uses DateTimes