Skip to content

Type Alias: ScatterpolarTrace ​

ts
type ScatterpolarTrace = Omit<CommonTraceAttributes, 'hoverinfo'> & object;

Markers, lines, text and filled areas (radar charts) at polar coordinates r, theta on a polar subplot (layout.polar).

Type Declaration ​

NameTypeDescription
cliponaxis?booleanClip markers and text to the subplot outline. Lines and fills are always clipped; unclipped markers outside the radial range or sector are hidden, as in Plotly.
connectgaps?booleanConnect lines across missing (null, NaN) points instead of breaking them.
dr?numberRadial step of the implicit r.
dtheta?numberAngular step of the implicit theta. Defaults to the subplot period (a full turn, or the category count) divided by the number of points.
fill?"none" | "toself" | "tonext"toself closes the line (each run between gaps) into a filled shape (radar charts); tonext fills the ring between this trace and the previous scatterpolar trace on the subplot (one should enclose the other), and acts like toself for the first trace.
fillcolor?stringFill color. Default: the line color (else the marker color, else the colorway color) at half opacity.
hoverinfo?PerPoint< | "r" | "theta" | "text" | "name" | `${"r" | "theta" | "text" | "name"}+${string}` | "all" | "none" | "skip">Which fields hover labels show (r: …, θ: …, the text and the trace name); 'skip' also turns hover events off for this trace. Default 'all'.
hoveron?"points" | "fills" | "points+fills" | "fills+points"What hover reacts to: points (markers, line vertices) and/or the filled area, which reports the trace. Default 'fills' for 'toself' / 'tonext' fills without markers or text, else 'points'. Fills hover (in every hovermode) only when no point is under the pointer.
line?ScatterpolarTraceLineLine style (mode lines). shape and smoothing also shape fills.
marker?ScatterTraceMarkerMarker style (mode markers).
mode?| "lines" | "markers" | "text" | "lines+markers" | "lines+text" | "markers+lines" | "markers+text" | "text+lines" | "text+markers" | "lines+markers+text" | "lines+text+markers" | "markers+lines+text" | "markers+text+lines" | "text+lines+markers" | "text+markers+lines" | "none"Drawing mode. Defaults to 'lines+markers' below 20 points, else 'lines' (Plotly rule).
r?DataColumnRadial coordinates.
r0?unknownAlternative to r: the first radial coordinate, stepped by dr.
selected?ScatterTraceSelectedStyle of selected points while a selection is active (box/lasso select, selectedpoints).
subplot?"polar" | `polar${number}`The polar subplot this trace is drawn on: 'polar' (layout.polar), 'polar2' (layout.polar2), ….
text?PerPoint<string | number>Text per point: the labels of mode text, and hover text.
textfont?ScatterTraceTextfontFont of the text labels (mode text). Defaults to layout.font.
textposition?PerPoint< | "top left" | "top center" | "top right" | "middle left" | "middle center" | "middle right" | "bottom left" | "bottom center" | "bottom right">Where text labels sit relative to their point (and marker), or one per point.
texttemplate?PerPoint<string | number>Template for the text labels, e.g. '%{y:.2f}' or `'%{x
theta?DataColumnAngular coordinates: numbers in thetaunit on a linear angular axis, category names on a category axis.
theta0?unknownAlternative to theta: the first angular coordinate, stepped by dtheta.
thetaunit?"radians" | "degrees" | "gradians"Unit of theta (and theta0, dtheta) on linear angular axes.
type"scatterpolar"Trace type.
unselected?ScatterTraceUnselectedStyle of unselected points while a selection is active (box/lasso select, selectedpoints).

Released under the MIT License.