Hello,
I want use your plottin package but I dont find a way to set the dataset and pass it to plot.
I've tried to read your installation guide but It's unuseful for me because there are only installation tips.
Can anyone help me.
I must get data from a resultset but I cant use the jdbc example because my data are very particular.
I must create a dataset where X AXIS have the numbers between 0 and 24 (the hours of the day) and the Y Axis have the number of connection of a mailserver.
Thanks in advance Andrea
How to create a Dataset
Re: How to create a Dataset
Andrea Ponte wrote:
> I want use your plottin package but I dont find a way to set
> the dataset and pass it to plot.
Take a look through the demo applications in the source/com/jrefinery/chart/demo directory.
> I've tried to read your installation guide but It's unuseful
> for me because there are only installation tips.
The complete version of the guide is available for purchase for $30 from the JFreeChart web page.
> Can anyone help me.
> I must get data from a resultset but I cant use the jdbc
> example because my data are very particular.
Well, you'll have to write the code to get the data from the database. You need to get that data into a structure that implements the XYDataset interface. One option is the DefaultXYDataset class. Or you can write your own class...as long as it implements XYDataset, then JFreeChart is happy.
Regards,
DG.
> I want use your plottin package but I dont find a way to set
> the dataset and pass it to plot.
Take a look through the demo applications in the source/com/jrefinery/chart/demo directory.
> I've tried to read your installation guide but It's unuseful
> for me because there are only installation tips.
The complete version of the guide is available for purchase for $30 from the JFreeChart web page.
> Can anyone help me.
> I must get data from a resultset but I cant use the jdbc
> example because my data are very particular.
Well, you'll have to write the code to get the data from the database. You need to get that data into a structure that implements the XYDataset interface. One option is the DefaultXYDataset class. Or you can write your own class...as long as it implements XYDataset, then JFreeChart is happy.
Regards,
DG.