2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rechartsの任意ラベルと線の付け方

2
Last updated at Posted at 2017-05-11

recharts.js使用中に習得した経験をメモします。

  • 任意ラベル

textタグで座標を指定することで、必要なところでラベルを付けることができます。

<text x={0} y={100}>my label </text>
  • 任意線

lineタグで線の属性を指定することで、必要なところで線を引くことができます。

<line x1={0} y1={200} x2={600} y2={200}>my label </text>

注意

  • 上記textタグはrecharts内部用のhtmlタグであり、折り線の描画のためのTextコンポーネントではなりません。
  • 上記lineタグはrecharts内部用のhtmlタグであり、折り線の描画のためのLineコンポーネントではなりません。
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?