Skip to content

Type Alias: IsosurfaceTrace ​

ts
type IsosurfaceTrace = CommonTraceAttributes & object;

Isosurfaces of a scalar field on a 3D grid: surfaces where the value is constant, between isomin and isomax, with caps, slices and a space frame, colored by value.

Type Declaration ​

NameTypeDescription
autocolorscale?booleanPick the colorscale from the sign of the color domain (Reds for ≥ 0, Blues for ≤ 0, RdBu across 0). Defaults to true unless colorscale is given.
caps?IsosurfaceTraceCapsCaps on the grid's boundary.
cauto?booleanCompute the color domain from the numeric value values. Defaults to false when both cmin and cmax are given.
cmax?numberValue mapped to the last colorscale color (with cmin; turns cauto off).
cmid?numberWith cauto, widen the automatic domain so it is symmetric around this value (diverging data).
cmin?numberValue mapped to the first colorscale color (with cmax; turns cauto off).
coloraxis?"coloraxis" | `coloraxis${number}`Share a colorscale and domain with other traces through layout.coloraxis ('coloraxis', 'coloraxis2', …). Overrides this container's colorscale attributes.
colorbar?ColorbarThe colorbar of this colorscale (plan E5.3).
colorscale?| ColorScale | readonly string[] | readonly readonly (number | string)[][]Colorscale for numeric value values: a name ('Viridis', 'RdBu', …), a list of colors, or [position, color] stops from 0 to 1.
flatshading?booleanFlat shading: one normal per triangle (the default, as in Plotly: the extracted triangles share no vertices, so smooth shading looks the same).
isomax?numberUpper end of the value range of the isosurfaces. Default: the largest value.
isomin?numberLower end of the value range of the isosurfaces. Default: the smallest value.
lighting?IsosurfaceTraceLightingPlotly's lighting model: coefficients of the ambient, diffuse and specular light. With scene.lighting, they scale the scene's lights.
lightposition?IsosurfaceTraceLightpositionPosition of the light (Plotly's model, without scene.lighting), in clip space: it moves with the view.
material?Bar3dTraceMaterialThe material of the surface (Holochart extension). Plotly figures keep the default, plotly.
reversescale?booleanReverse the colorscale (the lowest value gets the last color).
scene?"scene" | `scene${number}`The 3D scene this trace is drawn in: 'scene' (layout.scene), 'scene2' (layout.scene2), ….
showscale?booleanShow a colorbar for this colorscale (drawn by the colorbar component, plan E5.3).
slices?IsosurfaceTraceSlicesSlices through the grid.
spaceframe?IsosurfaceTraceSpaceframeThe space frame.
surface?IsosurfaceTraceSurfaceThe isosurfaces.
text?PerPoint<string | number>Text per grid point, shown in hover labels (after the value) and as %{text} in templates.
type"isosurface"Trace type.
value?DataColumnThe value at every grid point (numbers): the field whose level surfaces are drawn and which the colorscale maps.
valuehoverformat?stringd3 number format of value values in hover labels. Default: the value with hover precision.
x?DataColumnX coordinate of every grid point (numbers, dates or categories): x, y, z and value are flattened columns of a rectilinear grid, one entry per point, the axes nested in any order.
xhoverformat?stringd3 number format of x values in hover labels. Default: the scene's x axis format.
y?DataColumnY coordinate of every grid point (numbers, dates or categories): x, y, z and value are flattened columns of a rectilinear grid, one entry per point, the axes nested in any order.
yhoverformat?stringd3 number format of y values in hover labels. Default: the scene's y axis format.
z?DataColumnZ coordinate of every grid point (numbers, dates or categories): x, y, z and value are flattened columns of a rectilinear grid, one entry per point, the axes nested in any order.
zhoverformat?stringd3 number format of z values in hover labels. Default: the scene's z axis format.

Released under the MIT License.