title: Customized Label To JFreeChart
body: <p>I'm creating a XYStepChart using JFreeChart and my dataset is as sent to me as (TimeStamp, X1, X2). I'm required to plot X1 for a given timestamp, however I would want to use the value of X2 as the label for the given point.</p>
  
  <p>Can someone please guide me in achieving this? I tried the following:</p>
  
  <pre><code>XYItemLabelGenerator itemLabelGenerator = new StandardXYItemLabelGenerator();
  plot.getRenderer().setBaseItemLabelGenerator(itemLabelGenerator);
  plot.getRenderer().setSeriesItemLabelsVisible(0, true);
  </code></pre>
  
  <p>But this just shows the value of X1 as labels. Any suggestions?</p>