如何使用react recharts

时间:2017-05-26 06:43:10

标签: reactjs recharts

我尝试使用react recharts。我需要这样的图表chart with straight lines 但我无法画出直线。我尝试使用但有些不对劲

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

并不清楚数组中的平均值是什么意思。如果我理解的话,x和y是XAxis和YAxis的坐标。这条线画任何东西

1 个答案:

答案 0 :(得分:0)

我认为你的意思是ReferenceLine

相关问题