Create a scatter plot Chart.
def points = Geometry.createRandomPoints(new Bounds(0,0,100,100).geometry, 10) List data = points.geometries.collect{pt -> [pt.x,pt.y] } Chart chart = Scatter.scatterplot(data)
Type Params | Return Type | Name and description |
---|---|---|
|
static Chart |
scatterplot(Map options = [:], java.util.List data) Create a scatter plot Chart |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a scatter plot Chart
options
- Named parameter options
data
- A List of data where each item is a List with two items.