Bar Chart "stacked" attribute not honored for vertical charts.

Aperta
#603 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript

Direzione di ricerca

Start with the linked minimal reproduction and compare the two BarChart examples using static data, focusing on the difference between the default and horizontal orientations. Trace the BarChart implementation from the appkit repository entry point and verify the result with a vertical chart containing multiple series; done means stacked=true produces stacked vertical bars as it already does horizontally.

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

Descrizione

Hello,

I am working with appkit attempting to make some stacked bar charts over a time series.
My goal is to have a stacked bar with multiple series.

However, the stacked={true} attribute on <BarChart /> does not appear to be honored unless orientation='horizontal'.

Example:
<BarChart data={data} stacked={true} xKey="work_date" /> does not stack:

Image

<BarChart data={data} stacked={true} xKey="work_date" orientation="horizontal" /> does stack:

Image

I have created a minimal reproduction here. To run this the DataBricks details will need to be provided in a .env, but it uses static data for the example charts.

Thank you!

Lingua principale
TypeScript
Stelle
119
Fork
36
Merge medio
4g 16h
PR unite (30g)
37

Preparare l'ambiente

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 databricks/appkit

Tutte le issue di databricks/appkit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.