plotly/plotly.js

[Feature Request] Support line styles in Scattermapbox

Open

#6.791 aberto em 22 de nov. de 2023

Ver no GitHub
 (12 comments) (2 reactions) (0 assignees)JavaScript (1.846 forks)batch import
P3featuregood first issue

Métricas do repositório

Stars
 (15.964 stars)
Métricas de merge de PR
 (Mesclagem média 35d 19h) (36 fundiu PRs em 30d)

Description

It would be nice to plot lines of different styles, e.g. dashed, dotted, etc. to a Scattermapbox layer. The lack for this feature has been noted here How do I change the line style to dash in a scattermapbox plot?, and here How to change line shape in mapbox maps?

Currently (Plotly 5.18), the only supported line attributes are "color" and "width" . However, distinguishing lines by color is not sufficient for monochrome styled figures. In addition, certain line styles are frequently expected:

  • minor roads = dashed line
  • under construction = dotted line

Guia do colaborador