Set new MarkerOptions for this series.
Set new MarkerOptions for this series.
ScatterOptions.updatedMarker to update an existing set of marker options.
Set the line mode.
Set the line mode.
Possible arguments are ScatterMode.Marker
, ScatterMode.Line
and ScatterMode.Text
. These are additive:
.mode(List(ScatterMode.Marker, ScatterMode.Line))
will show both markers and a line between them.
ScatterMode.Text
indicates that the text corresponding to
a particular point should always be shown (by default, it is
shown when the user hovers over the point).
Set the line mode.
Set the line mode.
Possible arguments are ScatterMode.Marker
, ScatterMode.Line
and ScatterMode.Text
. These are additive:
.mode(ScatterMode.Marker, ScatterMode.Line)
will show both
markers and a line between them.
ScatterMode.Text
indicates that the text corresponding to
a particular point should always be shown (by default, it is
shown when the user hovers over the point).
Set the name of the series
Set the text labels for points in this series.
Set the text labels for points in this series.
This sets a different label for each point. The iterator
newText
must be the same length as the data series.
Set the text labels for points in this series.
Set the text labels for points in this series.
This sets the same label for every point.
Set the text labels for points in this series.
Set the text labels for points in this series.
This sets the labels from data that is already in Plotly.
String of format fileId:columnUid
, where
fileId
is the id of a grid in Plotly and column uid is
the id of a column in that grid.
import co.theasi.plotly._ val gridFile = writer.GridFile.fromFileName("lowest-oecd-votes-cast-grid") val fileId = gridFile.fileId val columnUid = gridFile.columnUids("y-0") val textSrc = s"$fileId:$columnUid" val xs = (1 to 10) val ys = (1 to 10) val p = CartesianPlot() .withScatter(xs, ys, ScatterOptions().textSrc(textSrc)) draw(p, "text-src-example")
Update the MarkerOptions for this series.
Update the MarkerOptions for this series.
Function mapping the existing MarkerOptions to new MarkerOptions.
val xs = (1 to 10) val ys = (1 to 10) val p = CartesianPlot() .withScatter(xs, ys, ScatterOptions() .updatedMarker(_.size(10).symbol("x")))
Options controlling how scatter and line plots are plotted.