Skip to content

Variable: scatter3d ​

ts
const scatter3d: ExpressFunction<Scatter3dOptions>;

A 3D scatter plot (px.scatter_3d): one scatter3d trace (mode: 'markers') per group of color / symbol values and per frame, on one scene. A numeric color is a colorscale on coloraxis instead; size scales marker areas. Rendering needs the 3D traces registered (the @mk7s/holochart bundle, or register(...traces3d) from @mk7s/holochart-traces-3d).

Example ​

ts
const figure = scatter3d(iris, {
  x: 'sepal_length',
  y: 'sepal_width',
  z: 'petal_width',
  color: 'species',
});

Released under the MIT License.