【问题标题】:how to draw only straight lines using react recharts如何使用反应图表仅绘制直线
【发布时间】:2017-10-26 23:22:02
【问题描述】:

我尝试使用反应图表。我需要这样的图表chart with straight lines 但我不能画直线。我尝试使用但有问题

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

我不清楚数组点中的值是什么意思。如果我理解得很好,x 和 y 是 XAxis 和 YAxis 的坐标。这条线可以画任何东西

【问题讨论】:

    标签: reactjs recharts


    【解决方案1】:

    我想你的意思是ReferenceLine

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-21
      • 2023-03-15
      • 1970-01-01
      • 2020-03-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多