Hi,
I'm evaluating jfreecharts for use in my app. I'm comparing it with comercial offerings and I find it much better.
However, I still have some questions :
-I'm sampling data and need to keep adding it to the chart. I read in another thread that this can be done, but old data can't be removed. Can't I specify the number of samples a chart holds and have samples be droped automatically ?
-Because I have a regular need to alter and build new UIs, I need the library to be according to the javabeans specification. I looked at the code and jfreecharts doesn't seem to be the case. All the constructors seem to take parameters, and there is a factory that returns the charts. Am I missing somethig. The goal is that I need to compose chart inside of my components, and if they aren't java beans I won't be able to do it visually.
thanks a lot for any help
Ricardo Trindade
java beans and adding samples to graph
Re: java beans and adding samples to graph
ricardo trindade wrote:
> -I'm sampling data and need to keep adding it to the chart. I
> read in another thread that this can be done, but old data
> can't be removed. Can't I specify the number of samples a
> chart holds and have samples be droped automatically ?
There is code in CVS now that allows you to specify the amount of data you want to retain in a BasicTimeSeries. So if you are using time series data, there is help on the way.
> -Because I have a regular need to alter and build new UIs, I
> need the library to be according to the javabeans
> specification. I looked at the code and jfreecharts doesn't
> seem to be the case. All the constructors seem to take
> parameters, and there is a factory that returns the charts.
> Am I missing somethig. The goal is that I need to compose
> chart inside of my components, and if they aren't java beans
> I won't be able to do it visually.
It would be good if JFreeChart could behave nicely as a Javabean. But since I don't do any "visual" programming, I decided against writing that part of the code myself (mostly because it would be very difficult for me to maintain). But I hope someone else will write a good Javabean wrapper and contribute it to the project.
Regards,
DG.
> -I'm sampling data and need to keep adding it to the chart. I
> read in another thread that this can be done, but old data
> can't be removed. Can't I specify the number of samples a
> chart holds and have samples be droped automatically ?
There is code in CVS now that allows you to specify the amount of data you want to retain in a BasicTimeSeries. So if you are using time series data, there is help on the way.
> -Because I have a regular need to alter and build new UIs, I
> need the library to be according to the javabeans
> specification. I looked at the code and jfreecharts doesn't
> seem to be the case. All the constructors seem to take
> parameters, and there is a factory that returns the charts.
> Am I missing somethig. The goal is that I need to compose
> chart inside of my components, and if they aren't java beans
> I won't be able to do it visually.
It would be good if JFreeChart could behave nicely as a Javabean. But since I don't do any "visual" programming, I decided against writing that part of the code myself (mostly because it would be very difficult for me to maintain). But I hope someone else will write a good Javabean wrapper and contribute it to the project.
Regards,
DG.
Re: java beans and adding samples to graph
hi,
I might follow that path (writing the javabean wrapper), and contribute it.
I'm going to check out the source and see if it would be difficult. are there developer docs in the cvs ?
I might follow that path (writing the javabean wrapper), and contribute it.
I'm going to check out the source and see if it would be difficult. are there developer docs in the cvs ?