Skip to content

Commit 9beec14

Browse files
author
Max Streese
committed
Add x and y axis/sequences in order to provide ability for custom x and y ticks
1 parent a912977 commit 9beec14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/shared/src/main/scala/plotly/Trace.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,18 +237,24 @@ object Histogram {
237237
}
238238

239239
@data class Surface(
240+
x: Option[Sequence],
241+
y: Option[Sequence],
240242
z: Option[Sequence],
241243
showscale: Option[Boolean],
242244
opacity: Option[Double]
243245
) extends Trace
244246

245247
object Surface {
246248
def apply(
249+
x: Sequence = null,
250+
y: Sequence = null,
247251
z: Sequence = null,
248252
showscale: JBoolean = null,
249253
opacity: JDouble = null
250254
): Surface =
251255
Surface(
256+
Option(x),
257+
Option(y),
252258
Option(z),
253259
Option(showscale) .map(b => b: Boolean),
254260
Option(opacity) .map(d => d: Double)

0 commit comments

Comments
 (0)