Parent element to append widget to. If not specified, widget is appended to body. optional
opacity
du.widgets.scatterplot.ScatterPlot.opacity(value)
Sets the opacity of the area plots. Default is 0.3.
arg
type
description
value
number
The opacity value to set.
return
description
du.widgets.scatterplot.ScatterPlot
Reference to the current ScatterPlot.
size
du.widgets.scatterplot.ScatterPlot.size(value)
Sets the size of the dots. in pixels. Default is 3.
arg
type
description
value
number
The size to set.
return
description
du.widgets.scatterplot.ScatterPlot
Reference to the current ScatterPlot.
data
du.widgets.scatterplot.ScatterPlot.data(data)
Binds data to the scatter plot. Expected data format: array of objects with two properties: name which is the name of the plot and values which is an array containing (x, y) objects for the points.