d3.curveMonotoneX may be unsuitable for stacked areas.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- d3, javascript
- Domain
- data-visualization
Research direction
The report compares stacked area output using d3.curveLinear and d3.curveMonotoneX and includes the last four data points for the lowest and highest areas. Start by reproducing both curves with those series in d3-shape’s area examples or tests, then inspect the monotone curve handling for stacked areas. Done means the cause of the unexpected convexity is identified and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Description
Creating stacked area chart with .curve(d3.curveLinear) produced correct interpolation:

Creating the same chart with .curve(d3.curveMonotoneX) produced strange convexity for the highest area (between 3 and 2 points (X) from the end):

Last 4 items from the series for the LOWEST area are:
[0, 0] [0, 186] [0, 2294] [0, 2812.11]
Last 4 items from the series for the HIGHEST area are:
[0, 0] [186, 186] [2294, 2294] [2812.11, 21312.11]
- Dominant language
- JavaScript
- Stars
- 2.5k
- Forks
- 307
- Avg merge
- 4h 16m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from d3/d3-shape
-
Improve tree-shakingOpen
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
ai bug design good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
neomjs/neo-agent-institution#927 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gramps-project/gramps-web#1671 ·
Maintainers usually reply within 1 day
-
bug good first issue priority: P2 status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RhinoLink-Tech/data-fabric#502 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
cline/mcp-marketplace#3708 ·
-
beginner-friendly category:finding-titles community enhancement first-timers-only good first issue help wanted low hanging fruit micro-contribution type: task up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Berserk-hub150/skillhawk#264 · 1 comment ·
Maintainers usually reply within 4 days