title: Setting label for tooltip in flot based on x-axis value
body: <p>I have a line graph using flot. I want the tooltip to show the x-axis and y-axis values.</p>
  
  <p>I am trying:</p>
  
  <pre><code>content: "Orders &lt;b&gt;%y&lt;/b&gt; for &lt;span&gt;%x&lt;/span&gt;",
  </code></pre>
  
  <p>But this shows "Orders 100 for 0" for the first point, "Orders 100 for 1" for the second and so on.</p>
  
  <p>If I use:</p>
  
  <pre><code>content: "Orders &lt;b&gt;%y&lt;/b&gt; for &lt;span&gt;"+chartData.axis[0][1]+"&lt;/span&gt;",
  </code></pre>
  
  <p>Then this correctly shows the x-axis value for the first point.</p>
  
  <p>But this doesn't work:</p>
  
  <pre><code>content: "Orders &lt;b&gt;%y&lt;/b&gt; for &lt;span&gt;"+chartData.axis[%x][1]+"&lt;/span&gt;",
  </code></pre>
  
  <p>It gives me:</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token % 
  </code></pre>
  
  <p>How can I reference the value of %x within chartData.axis ?</p>