You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sets and draws `points`, which must be an array of points where a point is interpreted as a quadruple of form `[x, y, category, value]`.
116
+
Sets and draws `points`. Note that repeatedly calling this method without specifying `points` will not clear previously set points. To clear points use [`scatterplot.clear()`](#scatterplot.clear)
117
+
118
+
**Arguments:**
119
+
120
+
-`points` is an array of quadruples defining the point data. Each quadruple must be of the form `[x, y, category, value]` where `category` and `value` are optional and can be used for [coloring the points](#color-by-value-or-category).
121
+
122
+
**Returns:** a Promise object that resolves once the points have been drawn.
117
123
118
124
**Examples:**
119
125
@@ -140,17 +146,24 @@ scatterplot.draw(points);
140
146
scatterplot.draw();
141
147
142
148
// Lets actively unset the points. Since `draw()` assumes that you want to
143
-
// redraw existing points you have to actively pass in an empty array
149
+
// redraw existing points you have to actively pass in an empty array.
0 commit comments