Skip to content

Interface: ScattergeoTraceLine ​

Line style (mode lines). Each segment follows the great circle between its points.

Properties ​

PropertyTypeDefault valueDescription
color?stringundefinedLine color. Defaults to the marker color (when a single color) or the colorway.
dash?string"solid"Dash style: 'solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot', or a dash list such as '5px,10px,2px'.
lift?number0.15On a 3D globe (layout.geo.projection.type: 'globe3d'), how high each segment of the line rises above the surface in its middle: globe radii per radian of the segment's length, so a long route stands clear of the globe and a short hop stays low. 0 keeps the line on the surface. Values above 1/π (an arc to the antipode one radius high) are drawn as 1/π. The line of a filled trace (fill: 'toself') stays on the surface. A Holochart extra (Plotly has neither the globe nor this attribute); ignored on a flat projection. Minimum: 0
width?number2Line width in CSS px. Minimum: 0

Released under the MIT License.