Skip to content

Commit

Permalink
Add x and y axis/sequences in order to provide ability for custom x a…
Browse files Browse the repository at this point in the history
…nd y ticks
  • Loading branch information
Max Streese committed Nov 22, 2019
1 parent a912977 commit 9beec14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/shared/src/main/scala/plotly/Trace.scala
Original file line number Diff line number Diff line change
Expand Up @@ -237,18 +237,24 @@ object Histogram {
}

@data class Surface(
x: Option[Sequence],
y: Option[Sequence],
z: Option[Sequence],
showscale: Option[Boolean],
opacity: Option[Double]
) extends Trace

object Surface {
def apply(
x: Sequence = null,
y: Sequence = null,
z: Sequence = null,
showscale: JBoolean = null,
opacity: JDouble = null
): Surface =
Surface(
Option(x),
Option(y),
Option(z),
Option(showscale) .map(b => b: Boolean),
Option(opacity) .map(d => d: Double)
Expand Down

0 comments on commit 9beec14

Please sign in to comment.