Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate smooth curved graph using JFreeChart?

I am generating line chart using jfree chart, but I am able to generate a line chart which is not looking so good. I want to generate an image like the following

image

Can anybody please suggest any solution?

like image 962
Vidya Sagar Avatar asked Dec 01 '25 09:12

Vidya Sagar


1 Answers

If you already have a line chart, you will have to change the renderer you use to XYSplineRenderer. See the javadocs for this here.

like image 115
Dan D. Avatar answered Dec 03 '25 23:12

Dan D.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!