title: jqplot replot not working
body: <p>I am trying to replot my jqplot chart.</p>
  
  <pre><code>$(document).ready(function(){
  
  var dataseries = [[[10,20]]];
  
   var plot = $.jqplot('placeholder', dataseries ,
          { title:'&lt;%= @question.text%&gt;',
            axes:{
          yaxis:{min:-100, max:100, tickInterval:10, showTicks:true, label:"&lt;%=@question.ylabel1%&gt;"},
          xaxis:{min:-100, max:100, tickInterval:10, showTicks:true, label: "&lt;%=@question.xlabel1%&gt;"},
          y2axis:{min:-100, max:100, tickInterval:10, showTicks:true, label:"&lt;%=@question.ylabel2%&gt;", show:true},
          x2axis:{min:-100, max:100, tickInterval:10, showTicks:true, label:"&lt;%=@question.xlabel2%&gt;", show:true}},
  
            seriesDefaults:{showLine:false},
            series:&lt;%=itemNames.html_safe%&gt;,
            highlighter:{
          show:true,
          tooltipContentEditor:tooltipContentEditor}
  
          });
  });
  
  function tooltipContentEditor(str, seriesIndex, pointIndex, plot) {
      return plot.series[seriesIndex]["label"];
  }
  
  
  $("#placeholder").bind("jqplotClick", function(ev, gridpos, datapos, neighbor) {
  
      var x = Math.round(datapos.xaxis);
          var y = Math.round(datapos.yaxis);
        var item = $('li.item_button_selected').attr('id');
        if (item &gt; 0){
          var requestObj = {
            question_id: "&lt;%=@question.id%&gt;",
            user_id: "1",     
          }
          requestObj["item_id"]=item
          requestObj["x"]=x
          requestObj["y"]=y
              plot.series[0].data = [[50,50]];
              plot.replot();
  
  BLAH BLAH BLAH...
  </code></pre>
  
  <p>&lt;%=itemNames.html_safe%> typically looks like this: [{label:"Winona Ryder"},{label:"Paris Hilton"},{label:"Margaret Thatcher"},{label:"Snooki"},{label:"Natalie Portman"},]</p>
  
  <p>The chart draws fine when the page loads; when I click on the chart, nothing happens.  I know the click is being caught; if I put an alert in there, I see it.  Help!</p>