How to create custom Dataset bean

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Aravind J

How to create custom Dataset bean

Post by Aravind J » Tue Oct 15, 2002 11:09 am

Sir,
On x-axis i have to get JAN, FEB, MARCH, APRIL
y-axis i want data rane 100 , 110, 120, etc upto 260,
then plot xy graph and i want to give values of JAN, FEB, MARCH etc which dataset should i uses and how to write a java bean for that
pls help
thanks in advance

Lee Irvine

Re: How to create custom Dataset bean

Post by Lee Irvine » Tue Oct 15, 2002 5:35 pm

Use the TimeSeries plots. The HorizontalDateAxis class is used to build the x axis for dates. I have not attempted to change the date values from say Jan 2001 into just JAN but I am sure the system allowss you to do that. If not you will have to extend that class and find te method that the plot calls when it renders the graph and override it with your new mask.
Hope this helps, LEE

Locked