d3.curveMonotoneX may be unsuitable for stacked areas.

Aperta
#81 4 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
d3, javascript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Creating stacked area chart with .curve(d3.curveLinear) produced correct interpolation:
image

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

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]

Lingua principale
JavaScript
Stelle
2.5k
Fork
307
Merge medio
4h 16m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di d3/d3-shape

Tutte le issue di d3/d3-shape

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.