How to draw a straight line in jfreechart?

How to draw straight line with equation y=m*x+n

in jfreechart chart?

0


a source to share


1 answer


Sounds simple enough ... I've never used it, but there is an XYPlot class that sounds like a decent place to start. You can create it using ChartFactory to make it a little easier. You will need to implement a class that implements the XYDataSet interface in order to return the actual points (i.e. Evalutate your equation).



0


a source







All Articles