Line Chart

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

Line Chart

Post by Antonio Lopes » Fri Oct 25, 2002 6:42 pm

David,

How do I set vertical and horizontal grid on LineChart created using DefaultCategoryDataset?

I need create the graphic using other dataset?

thanks,
Antonio Lopes

Dave Gilbert

Re: Line Chart

Post by Dave Gilbert » Mon Oct 28, 2002 9:43 am

The grid lines are managed by the axes at present, although I plan to move the control over to the plot classes because I think that makes more sense.

There is a method setGridLinesVisible(boolean) in the ValueAxis class. Category axes don't have any means for displaying gridlines yet, so in a category plot you will only be able to display grid lines against the range axis (this will be changed before we make it to version 1.0.0).

Regards,

DG

Locked