Kley
Kley

Reputation: 93

how to draw only straight lines using react recharts

I try to use react recharts. I need chart like this chart with straight lines But I can't draw the straight lines. I try to use but something wrong

<Line  points={[{x:0, y:900}, {x:dataWithDay.lenght-1, y:900}]} stroke="gray" dot={false}/>

And not clear for me what does mean values in the array points. If I understand well x and y are coordinates of the XAxis and YAxis. This Line draw anything

Upvotes: 7

Views: 13144

Answers (1)

Kim
Kim

Reputation: 5425

I think you mean ReferenceLine.

Upvotes: 10

Related Questions