How can I draw grid lines

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
abicudo
Posts: 1
Joined: Wed Jun 06, 2007 8:42 pm

How can I draw grid lines

Post by abicudo » Wed Jun 06, 2007 9:18 pm

Hi!!

How can I draw grid lines with JFreeChart???
I need to plot a line chart (representing heart beats) but the background must be divided in squares like in a cardiogram.
How can I create this background, I mean, the squares in JFreeChart??

Thanks!!

tatia34
Posts: 23
Joined: Fri Apr 27, 2007 2:11 pm
Location: France

Post by tatia34 » Thu Jun 07, 2007 9:05 am

The solution :

Code: Select all

        plot.setDomainGridlinePaint(Color.black);
        plot.setRangeGridlinePaint(Color.black);

Locked