Skip to content
Permalink
Browse files

Add x and y axis/sequences in order to provide ability for custom x a…

…nd y ticks
  • Loading branch information
Max Streese
Max Streese committed Nov 22, 2019
1 parent a912977 commit 9beec1424a7a07405fb23542f2fc9d146f2e6356
Showing with 6 additions and 0 deletions.
  1. +6 −0 core/shared/src/main/scala/plotly/Trace.scala
@@ -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)

0 comments on commit 9beec14

Please sign in to comment.
You can’t perform that action at this time.