Next.js Discord

Discord Forum

Shadcn Recharts

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
hey guys, I'm having trouble with my area chart from rechart, I have put the file here. here is the data:

<HomeFragment.OverallChart
            data={[
              {
                date: new Date(2025, 1, 1),
                income: 980,
                outcome: 20,
                balance: 80,
              },
              {
                date: new Date(2025, 1, 2),
                income: 0,
                outcome: 50,
                balance: 930,
              },
              {
                date: new Date(2025, 1, 3),
                income: 10,
                outcome: 0,
                balance: 940,
              },
            ]}
          />


and you also have a picture of the result chart, which is wrong, the blue line is supposed to be way lower than the green and the red line even lower than the blue, I don't what is causing this, can someone help me out? Thanks! I'm also using shadcn/ui

0 Replies