plotly/plotly.js

[Feature Request] Support line styles in Scattermapbox

Open

#6,791 建立於 2023年11月22日

在 GitHub 查看
 (12 留言) (2 反應) (0 負責人)JavaScript (1,846 fork)batch import
P3featuregood first issue

倉庫指標

Star
 (15,964 star)
PR 合併指標
 (平均合併 35天 19小時) (30 天內合併 36 個 PR)

描述

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

貢獻者指南