Hi!
I want to create easy chart.
I don't know how to solve a problem.
I have 2 constructors:
JFreeChart(String,Font,DataSource,Plot)
Plot(JFreeChart,Axis,Axis)
To create an object of class JFreeChart, I have to create
Plot object before, but to create Plot object I need JFreeChart object.
How to create easy chart?
RE: How to create easy chart?
Hi Michal,
Use null for the first parameter in the Plot(...) constructor. For the next version I have removed the JFreeChart parameter because it isn't really necessary in the constructor, and causes confusion as you have pointed out. Sorry about that...
From memory, the Axis classes expect a Plot in the constructor too - same problem, same solution.
Thanks for the feedback,
DG
Use null for the first parameter in the Plot(...) constructor. For the next version I have removed the JFreeChart parameter because it isn't really necessary in the constructor, and causes confusion as you have pointed out. Sorry about that...
From memory, the Axis classes expect a Plot in the constructor too - same problem, same solution.
Thanks for the feedback,
DG