0
0

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 3 years have passed since last update.

Javaでグラフを入力画面から描画する(SpringBoot)

Posted at

前回の作業履歴
https://github.com/jamcookjapan/grapy/commit/567f8b2f444b1ef4a89e622babf3a4930cd897ae

静的なデータを投入して画像バイナリを作っていましたが、今回は入力画面を作って、データを動的に受け取ってグラフを書き込みたいと思います。

input.tsv
1	10,640,000
2	10,640,000
3	10,640,000
4	10,640,000
5	10,620,000
6	10650000
7	10780000
8	10780000
9	10780000
10	10760000
11	10570000
12	10530000
13	9960000
14	10250000
15	10250000

グラフ
image.png

X軸は固定ですが、グリッドと線の推移はほぼ正確に配置できました。Y軸の単位が細かすぎますが、気が向いたら改良したいと思います。

取り急ぎ現時点でも利用可能な状態にはなりましたが、もう1列入力を受け付けて、目標線も描画可能にします。
https://github.com/jamcookjapan/grapy/commit/4a87f21cca90502f15f3383df19a4f4e1d3f797d

以上です

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?