title: jFreeChart: Vertical Grid Lines in XYPlot?
body: <p>Right Now I have this chart: <a href="http://i.stack.imgur.com/xyyNX.png" rel="nofollow">http://i.stack.imgur.com/xyyNX.png</a></p>
  
  <p>I'd like to get the vertical grid to show. I can't find out how to do it. If possible, I'd like to replace the dashed lines too.</p>
  
  <p>Here's the code I'm using to plot that (ignoring the irrelevant parts like actually creating the chart and adding the data):</p>
  
  <pre><code>XYPlot plot = chart.getXYPlot();
  plot.setBackgroundPaint(Color.WHITE);
  plot.setDomainGridlinesVisible(true);
  plot.setRangeGridlinesVisible(true);
  plot.setRangeGridlinePaint(Color.black);
  plot.setDomainGridlinePaint(Color.black);
  </code></pre>