plotly / plotly/plotly.py

better support for lines on maps in Plotly Express

Open
#2,601 13 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

Today, px.line_mapbox and px.line_geo expect rows which are points, which are then split into groups and connected by lines.

In most GIS formats, however, as wrapped by GeoPandas, the entire line feature is often stored in a single row, just like choropleth geometries. We should have either a new pair of PX functions for this (px.line_feature_mapbox?) or an option to the existing functions (px.line_mapbox(geojson=<geojson>)) to support this option out of the box.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the existing px.line_mapbox and px.line_geo entry points and how they interpret rows as points. Compare that behavior with single-row line features from GeoPandas and GIS formats. Done requires an agreed design—new PX functions or an option on the existing functions—and support for those line features out of the box.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.